R
R
Ruslan2019-09-16 11:54:33
Python
Ruslan, 2019-09-16 11:54:33

How can I bypass the count limit in vk_api?

There is a program in python, with the help of which I download all the user's images using the vk.photos.getAll method. The problem is that the maximum number of photos that can be taken is 200. What if I need to get more photos? How to get around this limitation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-09-16
@sergiks

Flip through the pages. See the documentation of the photos.getAll() method - the parameter offset
Deeper in the rabbit hole - look at the execute() method - it allows you to make up to 25 calls to VK API methods in one request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question