Показать сообщение отдельно
Вэлл
17.12.2014
 
 
Аватар для Вэлл
ПсИХ=)))
TC
О пользователе
 
Сообщений: 3,954
ВкоптоКарма: 8,647


[#3428]
По умолчанию

Makinero, this functionality is not implemented in VkOpt now.
But you can use VK API for this:
https://vk.com/dev/users.getFollowers - get array with id of follovers (1000 per request)
https://vk.com/dev/account.banUser - ban user (1 per request)
(or 24 per request with https://vk.com/dev/execute method)

For example code for execute method

Need to use this method in loop with different "offset"
Код:
// Get list of all followers
var followers = API.users.getFollowers({
    "count": 24,
    "offset": 0
});

// Get array with id's of followers
var follower = followers.items;

var count = 24; // maximum requests for ban (because it's limited)
var i = 0; // index in followers array

// Ban followers one by one (because it limited by 1 per request)
while (count != 0) {
    count = count;
    var ban = API.account.banUser({"user_id": follower[i]});
    count = count - 1;
    i = i + 1;
};

// Return count of followers
return followers.count;
__________________
Оффлайн
 
Ответить с цитированием