

selenium-4.9.0.tar.gz), unarchive it, and run: python setup.py install

If you have pip on your system, you can simply install or upgrade the Python bindings: pip install -U seleniumĪlternately, you can download the source distribution from PyPI (e.g. Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer), as well as the Remote protocol. The selenium package is used to automate web browser interaction from Python. Let’s use pip3 to install Selenium for Python 3.Python language bindings for Selenium WebDriver. Copy the chromedriver file to this folder.Ī 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.From the top menu select Go > Go to Folder….Open up a new Finder window (the file browsing thing).If you don’t use the command line, it isn’t too complicated: in your PATH).ĭo you use the command line? Use mv chromedriver /usr/local/bin to move it to a nice good directory. Now we need to move ChromeDriver somewhere that Python and Selenium will be able to find it (a.k.a. This is the magic software! STEP THREE: Moving ChromeDriver somewhere sensible Unzip chromedriver_mac64.zip and it will give you a file called chromedriver (no extension). That link should download 2.32, but if you want something more recent just go to the page and download the right thing. It looks like a scam or like it was put together by a 12 year old, but I promise it’s good and cool and nice. Installing ChromeDriver STEP ONE: Downloading ChromeDriverįirst, download ChromeDriver from its terribly ugly site.

ChromeDriver, which allows software to control Chrome (like Selenium!).Selenium, which allows you to control browsers from Python.Want to use Selenium to scrape with Chrome OS X? Let’s do it! Installing Selenium and ChromeDriver on OS X
