Advertisement
gronke

temp code

May 12th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import requests
  2. import lxml.html
  3. import cssselect
  4. import csv
  5.  
  6. req = requests.get('http://www.publiclibraries.com/')
  7. root = lxml.html.fromstring(req.text)
  8.  
  9. divs = root.cssselect('table')
  10. div = divs[2]
  11. tables = div.cssselect('table')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement