Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Import error: No module name urllib2 in python 3

Asked by Edyth Ferrill Apr 14, 2021 2.3K views 1 answer
Share

About this question

 Here's my code:

import urllib2.request 

response = urllib2.urlopen("http://www.google.com") 

html = response.read() 

print(html)

Any help?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.