Answer the question
In order to leave comments, you need to log in
Python3 save image by url. I'm given a list of links as input and I need to add. them to my PDF file, how?
for link in links:
'''
img = requests.get(link)
img.save()
p.drawInlineImage(img, 0, 0)
'''
urlretrieve(link, "img.png")
p.drawInlineImage("img.png", 0, 0)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question