Get link : Urlopen : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Urlopen »

 

Get link


import re
from urllib import urlopen
webpage = urlopen('http://www.python.org')

text = webpage.read()
m = re.search('<a href="([^"]+)">Tutorial</a>', text, re.IGNORECASE)
print m.group(1)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Network
» Urlopen