Advertisement
Guest User

Untitled

a guest
Mar 10th, 2013
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. import requests
  2. from lxml import html
  3.  
  4. res = requests.get('http://www.example.com')
  5. doc = html.fromstring(res.text)
  6. el = doc.cssselect('#id.class')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement