Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import re
- tds = re.compile ('<td>(.*?)</td>')
- hrefs = re.compile ('<a href=\"/(.*?)\">')
- r = requests.get('http://pastebin.com/archive')
- for i in tds.findall (r.text):
- print hrefs.search (i).group(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement