samedi 19 août 2017

python web scraping problems with output

Not using this for any bad things. Read more here: www.419eater.com I have this url: http://ift.tt/2vSHE9W It has emails in the link titles. I need those.

I tried this: but it only gave a long html string with none of the emails. I don't know what to do. Please help

from urllib.request import Request, urlopen

req = Request('http://ift.tt/2wcxFyA', headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
print(webpage)




Aucun commentaire:

Enregistrer un commentaire