May 2017
Beginner to intermediate
220 pages
5h 2m
English
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "We can include other contexts through the use of the include directive."
A block of code is set as follows:
from urllib.request import urlopenfrom urllib.error import URLErrorurl = 'http://example.webscraping.com'try: html = urlopen(url).read()except urllib2.URLError as e: html = None
Any command-line input or output is written as follows:
python script.py
We will occasionally show Python interpreter prompts used by the normal Python interpreter, such as:
>>> import urllib
Or the IPython interpreter, ...
Read now
Unlock full access