Here\'s my code:
import urllib2.request response = urllib2.urlopen(\"http://www.google.com\") html = response.read() print(html)
Any help?
That worked for me in python3:
import urllib.request htmlfile = urllib.request.urlopen("http://google.com") htmltext = htmlfile.read() print(htmltext)