티스토리 뷰

공부

[Python] url open

seunggabi 승가비 2020. 7. 28. 23:16
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

 

'공부' 카테고리의 다른 글

[Python] for get index  (0) 2020.08.05
[Python] substring; s[index:]  (0) 2020.08.05
[Python] url open  (0) 2020.07.28
[Python] proxy image respnose content-type  (0) 2020.07.28
[Linux] install python mysql  (0) 2020.07.28
[Django] not like statement  (0) 2020.07.28
댓글
댓글쓰기 폼