A
A
astral10042019-12-12 22:29:39
Java
astral1004, 2019-12-12 22:29:39

How to download all photos from a given area?

Good afternoon. I make a VK API request (I specify the search radius and coordinate), in which I get photos from the specified area. It gives me a Json file with links to photos and the number of them in this area (for example, 5000 pieces). But VK has a limit of 1000 photos per request.
That is, I download this 1000 photos. I want to download the rest of the photos (4000 pcs). But with a new request, VK gives me again the same thousand photos that I have already downloaded.
Tell me how you can organize a full download of all photos located in a given area (circle on the map). What algorithm can be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Ivanov, 2019-12-13
@ns174ru

VK api has such a thing as offset - search offset.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question