Advertisement
Guest User

Untitled

a guest
Dec 30th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import requests
  2. import re
  3.  
  4. tds = re.compile ('<td>(.*?)</td>')
  5. hrefs = re.compile ('<a href=\"/(.*?)\">')
  6.  
  7. r = requests.get('http://pastebin.com/archive')
  8. for i in tds.findall (r.text):
  9.     print hrefs.search (i).group(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement