python爬虫图片下载

import requests
response = requests.get("http://www.yuangaofen.com:8081/training_img/2017_11_8_8/3094318353_333134257.jpg")
with open('meinv.jpg','wb') as f:
    f.write(response.content)
    f.close()

猜你喜欢

转载自blog.csdn.net/qiqzhang/article/details/80257994