February 2018
Beginner to intermediate
364 pages
10h 32m
English
The code for these snippets is in 02/03_lxml_and_xpath.py in case you want to save some typing. We will start by importing html from lxml, as well as requests, and then load the page.
In [1]: from lxml import html ...: import requests ...: page_html = requests.get("http://localhost:8080/planets.html").text
Read now
Unlock full access