[Python] 파이썬으로 이미지 url 다운로드 - urllib.request
#. 이미지 url 다운로드-- urllib.request.urlretrieve(image_url, image_path) 12345678import urllib.request def downImage(img_url, img_name): dir = '/Users/aaron/Desktop/test/' urllib.request.urlretrieve(img_url, dir + img_name + '.jpg') downImage('http://blogfiles.naver.net/20120808_277/tpet2_1344432366023a5JkD_PNG/2.png','cat') Colored by Color Scriptercs
Python/Collection
2019. 4. 27. 12:52