Merge pull request #18 from ksoeasyxiaosi/master

图虫下载图片大概率403
This commit is contained in:
梁英健
2019-03-11 16:22:58 +08:00
committed by GitHub
+1 -1
View File
@@ -76,7 +76,7 @@ def parse_imgURL(html):
def download_image(url):
try:
urls = 'https:' + url
ir = requests.get(urls)
ir = requests.get(urls, headers=headers)
if ir.status_code == 200:
save_image(ir.content)
return None