Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: u8 -*-
- from account import *
- from vklib import *
- import time
- vk = VKClient(delay_time=.5)
- vk.login(username, password)
- o=0
- c=1000
- t=vk.api('utils.getServerTime') + 30 * 24 * 60 * 60
- while 1:
- r=vk.api('groups.getMembers', group_id=65102188, offset=o, count=c)
- for uid in r['items']:
- try:
- vk.api('groups.banUser', user_id=uid, group_id=26406986, comment='Быдло', end_date=t, comment_visible=1)
- except Exception, e:
- print e
- o+=c
- if o >= r['count']:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement