Python3 error: "Import error: No module name urllib"

Posted by Sergio Tapia on Stack Overflow See other posts from Stack Overflow or by Sergio Tapia
Published on 2010-05-08T01:58:52Z Indexed on 2010/05/08 2:08 UTC
Read the original article Hit count: 641

Filed under:
|

Here's my code:

from urllib.request import urlopen

response = urllib.urlopen("http://www.google.com")
html = response.read()
print(html)

Any help?

© Stack Overflow or respective owner

Related posts about python3

Related posts about urllib2