Getting ready

We will exclusively be using Python 3.x, and specifically in my case 3.6.1.  While Mac and Linux normally have Python version 2 installed, and Windows systems do not. So it is likely that in any case that Python 3 will need to be installed.  You can find references for Python installers at www.python.org.

You can check Python's version with python --version

pip comes installed with Python 3.x, so we will omit instructions on its installation.  Additionally, all command line examples in this book are run on a Mac.  For Linux users the commands should be identical.  On Windows, there are alternate commands (like dir instead of ...

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.