프로그래밍 언어 및 기타/Python

외부 이미지 받기

import urllib.request

url = "https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fbcqlln%2FbtraNJ1deUp%2FAAAAAAAAAAAAAAAAAAAAAE8MBsiJxxqMhGTYF--4BqAQRgz_hqiP_qlzr89baziN%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3D4DfGV8w9OdMJmg%252FzHVHBMQDLma4%253D"

urllib.request.urlretrieve(url, "test.jpg")