generate functionThu, 15 Dec 2022

download image from url and return a full url of the image

def dl_image(url): image_name = 'test_image.jpg' request.urlretrieve(url, image_name) return url_for('static', filename='%s' % image_name)

Questions about programming?Chat with your personal AI assistant