how can I download the image from this URL: https://thispersondoesnotexist.com/ I know it hasn't some image-url but I hope to get some images from there.
My idea is to write a code to get more images from this URL.
how can I download the image from this URL: https://thispersondoesnotexist.com/ I know it hasn't some image-url but I hope to get some images from there.
My idea is to write a code to get more images from this URL.
Duplicate: Loop through webpages and download all images
Python 2
Using urllib.urlretrieve
import urllib
urllib.urlretrieve("http://www.gunnerkrigg.com//comics/00000001.jpg", "00000001.jpg")
Python 3
Using urllib.request.urlretrieve (part of Python 3's legacy interface, works exactly the same)
import urllib.request
urllib.request.urlretrieve("http://www.gunnerkrigg.com//comics/00000001.jpg", "00000001.jpg")