dowload image from requests

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) 



原文地址:https://www.cnblogs.com/otfsenter/p/9561898.html