[Python] urllib.request를 활용한 다운로드
urllib.request Document 1. urllib.request.urlretrieve 1 2 3 4 5 6 7 8 9 10 11 import urllib.request as req imgUrl = "http://blogfiles.naver.net/20121022_232/david20jazz_1350882992041n6mRR_JPEG/31032684903853604_Vlyy66Za_c.jpg" htmlUrl = "http://google.com" savePath1 = "c:/workspace/image.png" savePath2 = "c:/workspace/index.html" req.urlretrieve(imgUrl, savePath1) req.urlretrieve(htmlUrl, savePa..
Python
2020. 3. 4. 21:13