Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vk
- import time
- import random
- random.seed(time.time())
- print("Введи телефончик")
- login = input()
- print("Введи парольчик")
- password = input()
- session = vk.AuthSession(6356219, login, password, scope='wall, messages')
- vk_api = vk.API(session)
- print("Жди, ща я посмотрю кто у тебя там...")
- dialogs = vk_api.messages.getDialogs(count=200)
- t_yan_ids = []
- cur_number_of_queries = 0
- for dialog in dialogs:
- if type(dialog) is dict:
- cur_number_of_queries += 1
- user = vk_api.users.get(user_ids=[dialog['uid']], fields=['sex'])[0]
- if user['sex'] == 1:
- t_yan_ids.append(user['uid'])
- if cur_number_of_queries == 7:
- time.sleep(3)
- cur_number_of_queries = 0
- random.shuffle(t_yan_ids)
- print("Скольких тян ты хочешь закадрить!?")
- k = int(input())
- while len(t_yan_ids) < k:
- print("у тебя не так уж и много знакомых тянок хах, введи еще раз число")
- k = int(input())
- cur_number_of_queries = 0
- for i in range(k):
- cur_number_of_queries += 1
- try:
- vk_api.messages.send(user_id=t_yan_ids[i], message="Го сосаца")
- except:
- print("Одной из тян не вышло отправить сообщение :с (там либо чс либо еще чет лох ты короч)")
- if cur_number_of_queries == 7:
- time.sleep(3)
- cur_number_of_queries = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement