从网页/页面网址下载图像

时间:2019-05-30 06:11:41

标签: python-3.x image download wagtail-pageurl

我想下载图像并将其存储在系统中。当我尝试时,图像即将到来,但格式是可支持的。如何从页面下载图像?

import urllib.request
im= "https://amazon.in/Nairns-Mixed-Berries-Biscuits-Sugar/dp/B00DYQ0VGU/ref=sr_1_24?fst=as%3Aoff&qid=1554374123&refinements=p_n_feature_browse-bin%3A4868065031&rnid=4868020031&s=grocery&sr=1-24.jpg"
im1= urllib.request.urlretrieve(im,"D:/imagess/.jpg")

0 个答案:

没有答案