Why Python…

Versatile, data science, machine learning, web development and more… Strong community, there are a package for everything. Easy to learn, easy to read, concise, interpreted language.

Install Python…

Open Microfost Store

https://www.python.org/downloads/

and install Visual Studio Code

https://code.visualstudio.com/download

Config Visual Studio Code

Installing and using Python packagesInstall a library

1
2pip install selenium-stealth

Install ChromeDriver

https://sites.google.com/chromium.org/driver

Writing the first Python program…

 1from selenium import webdriver
 2from selenium_stealth import stealth
 3import time
 4
 5options = webdriver.ChromeOptions()
 6options.add_argument("start-maximized")
 7
 8# options.add_argument("--headless")
 9
10options.add_experimental_option("excludeSwitches", ["enable-automation"])
11options.add_experimental_option('useAutomationExtension', False)
12driver = webdriver.Chrome(options=options, executable_path=r"C:\\github\\chromedriver\\chromedriver.exe")
13
14stealth(driver,
15        languages=["en-US", "en"],
16        vendor="Google Inc.",
17        platform="Win32",
18        webgl_vendor="Intel Inc.",
19        renderer="Intel Iris OpenGL Engine",
20        fix_hairline=True,
21        )
22
23url = "https://bot.sannysoft.com/"
24driver.get(url)
25time.sleep(5)
26driver.quit()