J
J
Jay Marlow2016-09-17 02:33:45
Python
Jay Marlow, 2016-09-17 02:33:45

How to upload an image from a link using the vk API?

Good day.
I found two topics with a similar name here, but in one person they didn’t help, and in the second they said at all that images cannot be downloaded from the link.
What nonsense?
Even in Google, the first five pages on this topic do not give a sensible answer.
If you can manually upload photos by specifying only the link in the message, then this can be implemented programmatically, bypassing downloading the image to the machine and then posting it via api.
I have already set up posting pictures from the hard drive and now it remains to find out how to implement it by inserting only third-party links, a la cats.com/cat234.jpg .
Maybe someone knows something on this topic?
I will be glad to any answers.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Berloga, 2016-09-30
@kolumbou

To understand how attaching images via a link works, you need to dig a little into what happens when you insert a link to an image
: done already contains a link to the picture on the VK server.
One thing is too early to rejoice - if this is not in the public VK-API, then firstly, you will have to get a real access-token, which means asking the user to enter a login password, and secondly, to understand the VK source js code, and understand how a request is generated.
Are you still sure you don't want to save a temp image for loading via the familiar API?)

R
Rou1997, 2016-09-17
@Rou1997

If you can manually upload photos by specifying only the link in the message, then this can be implemented programmatically, bypassing downloading the image to the machine and then posting it via api.
No, it does not mean that the interface in the browser does not work through the API.

G
grizzle, 2016-09-17
@grezzle

Look at wrap api - allows you to make api for any site from outside.

I
Ivan Erokhin, 2016-09-17
@dero

unfortunately not. I was looking for an answer to this question myself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question