Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import lxml.html
- import cssselect
- import csv
- req = requests.get('http://www.publiclibraries.com/')
- root = lxml.html.fromstring(req.text)
- divs = root.cssselect('table')
- div = divs[2]
- tables = div.cssselect('table')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement