T
T
TechNOIR2019-04-06 01:57:25
Python
TechNOIR, 2019-04-06 01:57:25

VK API. Is it possible to get the id of all users from the users.search method?

Good afternoon!
I want to get the id of all users from the issuance of api using the users.search method.
In the parameters I specify the city and country. Only 130 thousand users.
But as far as I understand, users.search gives a maximum of 1000 or so, even if offset is shifted.
Is there a way to get all 130 thousand? Execute method?
If you can, please show an example, if you don't mind.
Thanks in advance everyone

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kokarev, 2019-04-06
@akokarev

It is written about this in the API VK docs, there is a limit on the number of requests, a limit on the number of returned objects, etc. About some restrictions, they obviously do not say how much, so that there is no exploitation.
What you are trying to do is clearly contrary to common sense - the user does not need such volumes of data, he will not view such a number of lines through the UI. And that means that programs will not be allowed to receive so much.
Of course, you can try to get around these restrictions, for example, by creating a bunch of fake accounts, getting a bunch of tokens on them, and sorting through them as you go. But rest assured, you will be quickly identified and blocked based on IP and other criteria.
So the idea of ​​collecting 130,000 user ids at once according to the selection criteria is doomed to failure in advance.
Well, actually the question is: WHY?
Perhaps, by answering which, you will find a more legal and correct way to solve the problem, or abandon this idea.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question