import requests
import shutil
url_png = "http://...png"
path_image = "/usr/local/001"
resp = requests.get(url, stream=True)
with open(path_image, 'wb') as f:
shutil.copyfileobj(resp.raw, f)
import requests
import shutil
url_png = "http://...png"
path_image = "/usr/local/001"
resp = requests.get(url, stream=True)
with open(path_image, 'wb') as f:
shutil.copyfileobj(resp.raw, f)