M
M
Mark Adams2016-10-02 17:44:13
Python
Mark Adams, 2016-10-02 17:44:13

How to collect all users by filter (users.search method) in VK API?

At the moment, there is such a limitation:
users.search
249e818979844e67a239a08fe8578e37.png
How can I collect all users by filter through the VK API?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
riot26, 2016-10-02
@riot26

Parse parts by filters. For example, first 1000 users under 20, then 1000 from 20 to 30, then 1000 40+ years. Or other filters6 by gender, marital status, etc.

V
Vitaly, 2016-10-20
@vshvydky

In short, contact a brick from me for their perversion security
How to parse:
1. select a location, year, month, gender. This detail is often sufficient. Total 24 requests for 1 year.
2. you need to be prepared that at some point you may encounter a captcha or a message about flood control (tobish ban).
3. you need to understand that in VK programmers do not know how to work directly and honestly with API clients and know that the user.search function works with a trick, that is, at a certain point in time it can start lying to you about the people actually found. What does it mean? for example, you parse for several years and send requests sequentially, as a result, in April of some year you start receiving messages that no people were found at all, try to check the control value of the last successful searches, you get this value. As a result of their petty mischief, you get a bunch of hemorrhoids, as a result you register 20 users, connect proxies and do everything through them, then it will be fine. In other cases, it will be hemorrhoids ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question