-
Notifications
You must be signed in to change notification settings - Fork 5
/
zefoy.py
324 lines (257 loc) · 16 KB
/
zefoy.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
import datetime
import os,sys
import random
import time
import inquirer
import colorama
import requests
from src import process
import rich
from rich import *
from rich.table import Table
from rich import print
from rich.layout import Layout
from rich.console import Console
from rich.text import Text
from rich.panel import Panel
from halo import Halo
from colorama import init, Fore
spinner = Halo(text='Loading', spinner='dots')
layout = Layout()
date = datetime.datetime.now()
logo = " _____ _ _ __ ___\n"
logo2 = "|_ _(_) |_\ \ / (_)_____ __ _____ \n"
logo3 = " | | | | / /\ V /| / -_) V V (_-< \n"
logo4 = " |_| |_|_\_\ \_/ |_\___|\_/\_//__/ V 2.0.0 \n"
logo5 = " by Tiktok Views On Android"
text = Text()
console = Console()
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def main():
os.system("clear")
init(autoreset=True)
inject = process.ZefoyViews()
inject.get_session_captcha()
layout.split_column(
Layout(name="upper"),
Layout(name="lower")
)
layout["lower"].split_row(
Layout(name="left"),
Layout(name="right"),
)
layout["upper"].split(
Layout(Panel(Text(logo, style="blue") + Text(logo2, style="blue") + Text(logo3, style="blue") + Text(logo4, style="blue") + Text(logo5, style="blue")))
)
layout["right"].split(
Layout(Panel(" FB : Ahmad Chen Wang Xuesi \n Link : https://www.facebook.com/RRQ.IKz")),
Layout(Panel(" YT : Koleksibot Channel \n Link : https://www.facebook.com/RRQ.IKz")),
Layout(Panel("Credits : \n 1. Koleksibot \n 2. LulzGhost-Team \n 3. And You"))
)
layout["left"].split(
Layout(Panel(" How To Use \n 1. Follow Facebook GW \n 2. copy link video \n 3. Paste pada tools \n 4. pilih layanan \n 5. tunggu cooldown \n 6. Finish")),
)
layout["upper"].size = 8
layout["upper"].ratio = 1
layout["left"].size = 30
layout["right"].ratio = 3
layout["left"].ratio = 3
print(layout)
console = Console()
text.append("Example:", style="bold magenta")
text.append("https://www.tiktok.com/@[User_Name]/video/[ID_Video]", style="bold blue")
console.print(text)
url_video = input("Enter URL Video: ")
if url_video == "":
url_video = "https://www.tiktok.com/@anonsecteaminc/video/282928292928272828"
time.sleep(1)
if inject.post_solve_captcha(captcha_result=inject.captcha_solver()):
print("\n[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Success Solve Captcha" + "\n")
os.system("clear")
table = Table(title="")
table.add_column("Date", justify="center", style="cyan", no_wrap=True)
table.add_column("Service", justify="center", style="magenta")
table.add_column("info", justify="center", style="green")
status_services = inject.get_status_services()
if status_services is None: print("Failed to get status services, try again later"); exit()
valid_services = []
for service in status_services:
if service['name'] == 'Followers' or service['name'] == 'Comments Hearts':
continue
elif 'ago updated' in service['status']:
valid_services.append(service['name'])
table.add_row(str(date.year) + ":" + str(date.strftime("%d")) + ":" + str(date.strftime("%b")), service['name'], service['status'])
table.title = Fore.YELLOW + " Total Online Services: " + str(len(valid_services))
console = Console()
console.print(table)
questions = [
inquirer.List('type', message="What services do you need?", choices=valid_services, carousel=True, ), ]
answers = inquirer.prompt(questions)
while True:
try:
if answers['type'] == 'Views':
while True:
inject_views = inject.send_multi_services(url_video=url_video, services=answers['type'], )
if inject_views:
if inject_views['message'] == "Please try again later":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_views[
'message'])
exit()
elif inject_views['message'] == 'Another State':
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Views: " +
inject_views['data'], end="\r")
elif inject_views['message'] == "Successfully views sent.":
spinner.start()
time.sleep(3)
spinner.stop()
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Status : " + "Success")
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_views['message'])
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Views: " + inject_views['data'], end="\n\n")
elif inject_views['message'] == "Session Expired. Please Re Login!":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_views[
'message'])
exit()
elif inject_views['message'] == "Video not found.":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_views[
'message'])
exit()
else:
spinner.start()
time.sleep(3)
spinner.stop()
for i in range(int(inject_views['message']), 0, -1):
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) + " ]" + " CoolDown: " + str(
i) + " seconds", end="\r")
time.sleep(1)
else:
pass
elif answers['type'] == 'Shares':
while True:
inject_shares = inject.send_multi_services(url_video=url_video, services=answers['type'], )
if inject_shares:
if inject_shares['message'] == "Please try again later":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_shares[
'message'])
exit()
elif inject_shares['message'] == 'Another State':
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Shares : " +
inject_shares['data'], end="\n\n")
print()
elif inject_shares['message'] == "Shares successfully sent.":
spinner.start()
time.sleep(3)
spinner.stop()
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Status : " + "Success")
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_shares['message'])
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Share: " + inject_shares['data'], end="\n\n")
elif inject_shares['message'] == "Session Expired. Please Re Login!":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_shares[
'message'])
exit()
elif inject_shares['message'] == "Video not found.":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_shares[
'message'])
exit()
else:
spinner.start()
time.sleep(3)
spinner.stop()
for i in range(int(inject_shares['message']), 0, -1):
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) + " ]" + " CoolDown: " + str(
i) + " seconds", end="\r")
time.sleep(1)
time.sleep(random.randint(1, 5))
else:
pass
elif answers['type'] == 'Favorites':
while True:
inject_favorites = inject.send_multi_services(url_video=url_video, services=answers['type'], )
if inject_favorites:
if inject_favorites['message'] == "Please try again later":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_favorites[
'message'])
exit()
elif inject_favorites['message'] == 'Another State':
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Favorites : " +
inject_favorites['data'], end="\r")
elif inject_favorites['message'] == "Favorites successfully sent.":
spinner.start()
time.sleep(3)
spinner.stop()
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Status : " + "Success")
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_favorites['message'])
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Favorite: " + inject_favorites['data'], end="\n\n")
elif inject_favorites['message'] == "Session Expired. Please Re Login!":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_favorites[
'message'])
exit()
elif inject_favorites['message'] == "Video not found.":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_favorites[
'message'])
exit()
else:
spinner.start()
time.sleep(3)
spinner.stop()
for i in range(int(inject_favorites['message']), 0, -1):
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) + " ]" + " CoolDown: " + str(
i) + " seconds.", end="\r")
time.sleep(1)
time.sleep(random.randint(1, 5))
else:
pass
elif answers['type'] == 'Hearts':
while True:
inject_hearts = inject.send_multi_services(url_video=url_video, services=answers['type'], )
if inject_hearts:
if inject_hearts['message'] == "Please try again later":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_hearts[
'message'])
exit()
elif inject_hearts['message'] == 'Another State':
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Hearts : " +
inject_hearts['data'], end="\r")
elif inject_hearts['message'] == "Hearts successfully sent.":
spinner.start()
time.sleep(3)
spinner.stop()
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Status : " + "Success")
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_hearts['message'])
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + "Current Hearts: " + inject_hearts['data'], end="\n\n")
print()
elif inject_hearts['message'] == "Session Expired. Please Re Login!":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_hearts[
'message'])
exit()
elif inject_hearts['message'] == "Video not found.":
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) +" ] " + inject_hearts[
'message'])
exit()
else:
spinner.start()
time.sleep(3)
spinner.stop()
for i in range(int(inject_hearts['message']), 0, -1):
print("[ " + str(date.strftime("%d")) + ":" + str(date.strftime("%b")) + ":" + str(date.year) + " ]" + " CoolDown " + str(i) + " seconds.", end="\r")
time.sleep(1)
else:
pass
except Exception as e:
pass
else:
print("Failed to solve captcha.")
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
os.system("clear")
print("Exit")
exit()