Answer the question
In order to leave comments, you need to log in
VK Api: How to download user data using users.get and execute?
I have a txt list with 100k users. You need to upload data about them. I don't understand how execute works. I'm using a similar build:
import requests
code = """
return API.users.get({
"user_ids": id1, id2, id3,
"v": "5.122"
});"""
r = requests.post(
url="https://api.vk.com/method/execute",
data={
"code": code,
"access_token": "здесь токен",
"v": "5.122"
}
)
response_data = r.json()
Answer the question
In order to leave comments, you need to log in
As I understand it, execute calls intermediate VK API methods, I think you can pass a list of id to 'code' and already there execute a request 1000 at a time in a cycle and return a ready-made array . The problem is that I don’t know JS and I can’t tell you exactly how to do this, but judging by the description, it’s possible and most likely you need to dig in this direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question