J
J
jwadow2017-07-22 13:28:54
In contact with
jwadow, 2017-07-22 13:28:54

Quite a simple question on the VK API. How to automate this?

Essence of the question:
I want to clean up the list of friends and leave there only those who have more than 1000 friends + subscribers (in total).
To do this, I need to add them to the list and then for my own purposes I use a third-party plugin that exists and works quite well - VK Zen.
What I need:
Find in my friends list and add those who have 1000 friends + subscribers to the "Colleagues" or "Best friends" list, it doesn't matter.
Still not a particularly necessary thing, but I would also like to know how it is done. As a result, I would like to display all this in some Excel, in order to sort everything there as I please.
PS: I have ~9700 friends and ~1200 subscribers

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem0071, 2017-07-22
@jwadow

$all_friends = [];
$my_friends = (<a href="https://vk.com/dev/friends.get">получаем вот отсюда</a>)

$all_friends = $my_friends;
foreach($my_friends as $friend){
    $friends_of_friend = (<a href="https://vk.com/dev/friends.get">получаем вот отсюда</a>, только теперь вставляем его айдишник)
    $all_friends[] = $friends_of_friend;

S
Serezha, 2017-07-22
Ahen @Ahen

Why this question? Everything is written in the documentation. We take any language (I would take a node, there are at least two valid libs with execute), we take a VK lib, we use the methods:
https://vk.com/dev/friends.get
https://vk.com/dev/ friends.editList

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question