Python Web Scraping Cookbook
上QQ阅读APP看书,第一时间看更新

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 ls), but these alternatives will not be covered.