-
Notifications
You must be signed in to change notification settings - Fork 0
/
account5.py
58 lines (46 loc) · 1.46 KB
/
account5.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
import sys
import time
from itertools import count
from time import sleep
from random import randint
import random
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import os
def delay_counter(delay_time):
while delay_time:
mins, secs = divmod(delay_time, 60)
timer = '{:02d}:{:02d}'.format(mins, secs)
print("\u001b[31;1m ",timer, end="\r\u001b[0m")
time.sleep(1)
delay_time -= 1
def cron():
counter = 0
abc = 0
slp = 0
while True:
#replace your username and password
#os.system("python (how much mention).py -u (enter username) -p (enter password) ")
#example
#os.system("python 5mentions.py -u the__hell__gurl -p shazzam@12")
#replace the__hell__gurl = your username
#replace shazzam@12 = your password
os.system("python 5mentions.py -u the__hell__gurl -p shazzam@12")
counter += 1
abc += 1
slp += 1
print("\u001b[32mTotal comments : \u001b[0m",counter)
print('')
delay_counter(randint(1750,2000))
#delay_counter(randint(1,5))
#sleep(randint(5,9))
if slp>= 48:
print("\u001b[34;1m-- JUST TAKE A LONG BREAK --\u001b[0m")
delay_counter(5500)
slp = 0
if abc>=29:
print("\u001b[34;1m-- JUST TAKE A short BREAK --\u001b[0m")
delay_counter(1600)
abc = 0
cron()