
In order start, you'll need to write some Python code and download Selenium.įirst, create a directory and paste the following code into a file. Looking for a safe place to get started? Try this fictional bookstore website that's just begging to be scraped. I also suggest, if you’re just starting out with web scraping, to use websites that are simply built, or ones that you coded yourself. I am using my own personal website for this tutorial. Some websites prohibit web scraping, or ask that you receive written permission beforehand. Web scraping is the process of extracting data from websites and other sources using scripts. I am running Catalina 10.15.3.įeel free to try this out next time you want to run Selenium and the Chrome Webdriver on your Mac. This tutorial assumes you've set up Python on your computer. Up until now, I’ve only had to make a few minor adjustments for working on a Mac, but Selenium and Chromedriver proved to divert from the Windows tutorials quite a bit! Many of the tutorials I found used Windows computers. I’ve been on a web scraping binge for a couple of weeks and thought I might try using Selenium, a framework that allows for web scraping and testing automation. If you're running it on a Mac, however, there may be extra set up issues involved You can add the path to pip to your path variable or create aliases/links to make using it easier.Selenium is an effective tool for web scraping with Python. I don't remember why I installed distribute first, except that the distribute module may be needed by pip. ~/Library/Python/3.3/bin/pip install django ~/Library/Python/3.3/bin/pip install selenium ~/Library/Python/3.3/bin/easy_install pip I think this should get you the easy_install command Library/Python/3.3/bin/easy_install. Unpack distribute and cd into the directory

In Library/Python/ within your home directory. Only when installed with easy-install or pip, and you won't be required to use sudo. These lines will cause python modules to be installed for your user

pydistutils.cfg (note the period at the beginning of the filename). This creates a python3 in /usr/local/bin/.ĭownload the distribute module from Ĭreate a file in your home directory called. Download and install python3 fro website.
