Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
First, you get a list of all community members, put their IDs in the list, and then using the users.get method with filds = 'sex,bdate' you get information about each member, extract sex,bdate from the response, knowing the date of birth (bdate) you find out the age, and write it all to the database, for example. but you need to take into account different cases, for example, the user's profile may be closed, or the date of birth is hidden, and in such cases you will not receive the necessary information and the script will stop without elifs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question