SoFunction
Updated on 2024-11-16

Python3 Crawler ChromeDriver Installation Example

Python crawler can not only crawl static web pages, you can also crawl crawl crawl dynamic web pages. But the new version of Selenium does not support PhantomJS, can not be dynamic web crawling, so to give up PhantomJS, directly with headless ChromeDriver. this article introduces the process of installing ChromeDriver.

1、Why should I install ChromeDriver?

Using Python's third-party library selenium requires the corresponding browser driver ChromeDriver.

2、Related Links

Official website:/a//ch

3. MAC Installation

brew install chromedriver

If the installation fails, use the following method

brew cask install chromedriver

4. Verify installation

Also at the CMD command line, type the following

C:\Users\inwsy>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> browser = ()

If a blank Chrome page opens, the installation was successful.

to this article on the Python3 crawler ChromeDriver installation examples of the article is introduced to this, more related Python3 crawler tool: ChromeDriver installation content please search for my previous posts or continue to browse the following related articles I hope you will support me in the future more!