공부
[Python] url open
승가비
2020. 7. 28. 23:16
728x90
from urllib.request import urlopen
urlopen(image.url).read()
https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2?rq=1
Import error: No module name urllib2
Here's my code: import urllib2.request response = urllib2.urlopen("http://www.google.com") html = response.read() print(html) Any help?
stackoverflow.com
728x90