Answer the question
In order to leave comments, you need to log in
Why does an error appear when loading a picture in vk through standalone api Python without saving it to disk?
photo returns empty
for image_url in image_list:
print(image)
# request = requests.post(upload_url, files={'photo': open(image_name, 'rb')})
r = requests.get(image_url)
image_data = r.content
request = requests.post(upload_url, files={'photo': image_data})
print('request', request.json())
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