Advertisement
stuppid_bot

Untitled

Aug 17th, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. # -*- coding: u8 -*-
  2. from account import *
  3. from vklib import *
  4. import time
  5.  
  6. vk = VKClient(delay_time=.5)
  7. vk.login(username, password)
  8.  
  9. o=0
  10. c=1000
  11. t=vk.api('utils.getServerTime') + 30 * 24 * 60 * 60
  12. while 1:
  13.     r=vk.api('groups.getMembers', group_id=65102188, offset=o, count=c)
  14.     for uid in r['items']:
  15.     try:
  16.             vk.api('groups.banUser', user_id=uid, group_id=26406986, comment='Быдло', end_date=t, comment_visible=1)
  17.         except Exception, e:
  18.             print e
  19.     o+=c
  20.     if o >= r['count']:
  21.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement