ChromeDriver Setup in Selenium | How to install ChromeDriver in windows | Python

Аватар автора
Графики PHP
Installing Selenium and ChromeDriver on Windows. Want to use Selenium to scrape with Chrome on Windows? Let’s do it! We’ll need to install a couple things: 1) Selenium, which allows you to control browsers from Python 2) ChromeDriver, which allows the software to control Chrome (like Selenium!) STEP ONE: Downloading ChromeDriver First, download ChromeDriver from its terribly ugly site. It looks like a scam or likes it was put together by a 12-year-old, but I promise it’s good and cool and nice. Link for download chrome drive. you&want chromedriver_win32.zip. That link should download. STEP TWO: Unzipping ChromeDriver Extract chromedriver_win32.zip and it will give you a file called chromedriver.exe. This is the magic software! STEP THREE: Moving ChromeDriver somewhere sensible Now we need to move ChromeDriver somewhere that Python and Selenium will be able to find it (a.k.a. in your PATH). The easiest place to put it is in C:Windows. So move it there! Installing Selenium If you google about Selenium, a lot of the time you see things about “Selenium server” and blah blah blah - you don’t need that, you aren’t running a huge complex of automated browser testing machines. You don’t need that. We just need plain ol’ Selenium. Let’s use pip to install Selenium for Python 3. Open Command Prompt and Use the below command to install selenium. pip install selenium That&all about installing ChromeDriver and Selenium. Let&move to the Next task. Python | Automate Google...

0/0


0/0

0/0

0/0