im trying to get proxies out of a web page
import urllib
import re
myfile = open("C:\\Users\Teli\Desktop\pro.txt", "w")
page = urllib.urlopen("http://www.samair.ru/proxy/ip-address-01.htm").read()
a = re.findall('\d+\.\d+\.\d+\.\d+', page)
myfile.write(str(a))
myfile.close()
why does it say:
page = urllib.urlopen("http://www.samair.ru/proxy/ip-address-01.htm").read()
AttributeError: 'module' object has no attribute 'urlopen'