Hi All,
I am trying to make a python script to download image from a link.
I always used this code:
as you can see the link doesn't have extension of an image i.e. it doesn't end with .png , .jpg , ...
my code now doesn't work for these kind of links.
any suggestions on how to fix that?
I am trying to make a python script to download image from a link.
I always used this code:
import urllib.request myImgLink = "http://www.digimouth.com/news/media/2011/09/google-logo.jpg" urllib.request.urlretrieve(myImgLink , "local-filename.jpg")now I try to download an image with a link this : "https://drive.google.com/viewerng/img?id=ACFrOgBC9Til2_hbTKxft4aetjJViSBVtjug1ilDi5seFcDl4sQCpuPas7RmqxFc3iDu8m0tgOYw0Lw5cmxaoKaIbIWQPrp5xKISVMSfSD_t8mMh0yvnJFkhMggeOEs%3D&u=0&authuser=0&page=5&w=800"
as you can see the link doesn't have extension of an image i.e. it doesn't end with .png , .jpg , ...
my code now doesn't work for these kind of links.
any suggestions on how to fix that?