how do you save a randonly generated image to python?

The image changing is being done at the server side, if you need a copy of this image you will need to save the image at the point of the page loading.

Looking at the data these images are JPEG’s, this will download the image from that link,

import urllib.request

local_filename, headers = urllib.request.urlretrieve("https://www.list-org.com/kcap.php?PHPSESSID=iahvgmjcb93a0k7fqrf43sq9sk")

print(local_filename)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top