-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run.py
628 lines (600 loc) · 27.7 KB
/
Run.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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
import re, json, time, random, urllib.parse, os, requests, sys, webbrowser
from rich.console import Console
from rich.panel import Panel
from rich import print as printf
from requests.exceptions import RequestException
class fmt:
def Println(self, string: str, end: str):
printf(string, end=f"{end}")
def Print(self, string: str):
printf(string)
def Scan(self, prompt: str):
return Console().input(prompt)
LINK, COOKIES, LOOPING = (
[],
{
'Cookie': 'null'
},
0,
)
fmt = fmt()
def Tampilkan_Banner():
os.system("cls" if os.name == "nt" else "clear")
fmt.Print(
Panel(
r"""[bold red] _____ _ _____
|_ _| | / ___|
| | | | _\ `--. ___ __ _ _ __ _ __ ___ _ __
| | | |/ /`--. \/ __/ _` | '_ \| '_ \ / _ \ '__|
| | | </\__/ / (_| (_| | | | | | | | __/ |
[bold white] \_/ |_|\_\____/ \___\__,_|_| |_|_| |_|\___|_|
[underline green]Threads Dana Kaget Scanner""",
width=56,
style="bold bright_black",
)
)
def N_Threads_Scanner(cookies: str, query: str, visit: bool, delay: int):
global LOOPING
with requests.Session() as session:
session.headers.update(
{
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Upgrade-Insecure-Requests": "1",
"Sec-Fetch-Mode": "navigate",
"Host": "www.threads.net",
"Sec-Fetch-Site": "none",
"Accept-Language": "en-US,en;q=0.9",
"Connection": "keep-alive",
"Sec-Fetch-User": "?1",
"Sec-Fetch-Dest": "document",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
} # Simulasikan "User-Agent" Agar Mendapatkan Hasil Yang Berbeda!
)
response = session.get(
"https://www.threads.net/search/", verify=True, allow_redirects=True
)
try:
jazoest = re.search(r'&jazoest=(\d+)"', response.text).group(1)
__hsi = re.search(r'"hsi":"(\d+)"', response.text).group(1)
lsd = re.search(r'\["LSD",\[\],{"token":"([^"]+)"}', response.text).group(1)
__hs = re.search(r'"haste_session":"([^"]+)"', response.text).group(1)
csrftoken = session.cookies.get_dict()["csrftoken"]
except (AttributeError, KeyError):
fmt.Print(
Panel(
"[bold red]Sorry, Could not find the required data, you can try using Threads cookies!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Error] <",
title_align="center",
)
)
sys.exit()
ig_did_match = re.search(r'"device_id":"(.*?)"', response.text)
ig_did = ig_did_match.group(1) if ig_did_match else ""
mid_match = re.search(r'"machine_id":"(.*?)"', response.text)
mid = mid_match.group(1) if mid_match else ""
data = {
"variables": '{"meta_place_id":null,"pinned_ids":null,"query":"'
+ str(query)
+ '","recent":1,"search_surface":"default","tagID":null,"__relay_internal__pv__BarcelonaIsLoggedInrelayprovider":false,"__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider":true,"__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider":true,"__relay_internal__pv__BarcelonaShowReshareCountrelayprovider":true,"__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider":false,"__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider":false}',
"__comet_req": f"{random.randint(20, 30)}",
"doc_id": "8051513244976314",
"jazoest": f"{jazoest}",
"__hs": f"{__hs}",
"server_timestamps": "true",
"lsd": f"{lsd}",
"fb_api_caller_class": "RelayModern",
"__hsi": f"{__hsi}",
"fb_api_req_friendly_name": "BarcelonaSearchResultsQuery",
}
session.headers.update(
{
"Referer": "https://www.threads.net/search?q={}&serp_type=default".format(
urllib.parse.quote(query)
),
"Origin": "https://www.threads.net",
"Content-Type": "application/x-www-form-urlencoded",
"X-IG-App-ID": "238260118697367",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "cors",
"X-CSRFToken": "{}".format(csrftoken),
"Accept": "*/*",
"Sec-Fetch-Dest": "empty",
"X-FB-LSD": "{}".format(lsd),
"X-ASBD-ID": "129477",
"Cookie": "csrftoken={}; dpr=1.5; mid={}; ig_did={}".format(
csrftoken, mid, ig_did
),
"Content-Length": "{}".format(len(str(data))),
"X-FB-Friendly-Name": "BarcelonaSearchResultsQuery",
}
)
response2 = session.post(
"https://www.threads.net/api/graphql",
data=data,
verify=True,
allow_redirects=False,
)
if '"searchResults":' in response2.text:
find_data = re.findall(r"kaget\?c=(.*?)&", str(json.loads(response2.text)))
fmt.Println(
"[bold bright_black] ──>[bold green] %d Tautan Berhasil Ditemukan! "
% len(find_data),
end="\r",
)
time.sleep(1.5)
for code in find_data:
done_link = open("Penyimpanan/Done.txt", "r+").read().splitlines()
true_link = f"https://link.dana.id/kaget?c={code}"
if str(true_link) in LINK or str(true_link) in done_link:
continue
else:
LOOPING += 1
fmt.Print(
Panel(
"[bold green]%d[bold white]. Link:[bold red] %s."
% (LOOPING, true_link),
width=56,
style="bold bright_black",
title="[bold bright_black]> [Sukses] <",
title_align="center",
)
)
LINK.append("{}".format(true_link))
fmt.Println(
"[bold bright_black] ──>[bold white] Menemukan:[bold green] link.dana.id/kaget?c=%s[bold white]! "
% code,
end="\r",
)
time.sleep(0.5)
if visit == True:
(
webbrowser.open(url=true_link)
if os.name == "nt"
else os.system(f"xdg-open {true_link}")
)
for sleep in range(int(delay), 0, -1):
fmt.Println(
"[bold bright_black] ──>[bold white] Tunggu[bold green] %d[bold white] Detik! "
% sleep,
end="\r",
)
time.sleep(1)
with open("Penyimpanan/Done.txt", "a+") as w:
w.write(f"{true_link}\n")
w.close()
continue
fmt.Println(
"[bold bright_black] ──>[bold green] Selesai Mengumpulkan Tautan! ",
end="\r",
)
time.sleep(3.5)
return True
else:
fmt.Println(
"[bold bright_black] ──>[bold red] Tautan Tidak Ditemukan! ",
end="\r",
)
time.sleep(5.0)
return False
def L_Threads_Scanner(
cookies: str, query: str, end_cursor: bool, visit: bool, delay: int
):
global LOOPING
with requests.Session() as session:
session.headers.update(
{
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Upgrade-Insecure-Requests": "1",
"Sec-Fetch-Mode": "navigate",
"Host": "www.threads.net",
"Sec-Fetch-Site": "none",
"Accept-Language": "en-US,en;q=0.9",
"Connection": "keep-alive",
"Sec-Fetch-User": "?1",
"Sec-Fetch-Dest": "document",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
}
)
response = session.get(
"https://www.threads.net/search/",
cookies={"Cookie": "{}".format(cookies)},
verify=True,
allow_redirects=True,
)
try:
fb_dtsg = re.search(
r'\["DTSGInitialData",\[\],{"token":"(.*?)"}', response.text
).group(1)
lsd = re.search(r'\["LSD",\[\],{"token":"([^"]+)"}', response.text).group(1)
__hs = re.search(r'"haste_session":"([^"]+)"', response.text).group(1)
jazoest = re.search(r'&jazoest=(\d+)"', response.text).group(1)
__hsi = re.search(r'"hsi":"(\d+)"', response.text).group(1)
except AttributeError:
fmt.Print(
Panel(
"[bold red]Sorry, Could not find the required data. Your cooki\nes may not be working anymore!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Error] <",
title_align="center",
)
)
sys.exit()
data = f"av=&__user=0&__a=1&__req=y&__hs={urllib.parse.quote(__hs)}&dpr=1&__ccg=UNKNOWN&__rev=&__s=&__hsi={__hsi}&__dyn=&__csr=&__comet_req=29&fb_dtsg={urllib.parse.quote(fb_dtsg)}&jazoest={jazoest}&lsd={urllib.parse.quote(lsd)}&__spin_r=&__spin_b=trunk&__spin_t=&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=BarcelonaSearchResultsQuery&variables=%7B%22meta_place_id%22%3Anull%2C%22pinned_ids%22%3Anull%2C%22query%22%3A%22{urllib.parse.quote(query)}%22%2C%22recent%22%3A1%2C%22search_surface%22%3A%22default%22%2C%22tagID%22%3Anull%2C%22__relay_internal__pv__BarcelonaIsLoggedInrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaShowReshareCountrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider%22%3Afalse%2C%22__relay_internal__pv__BarcelonaIsCrawlerrelayprovider%22%3Afalse%2C%22__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider%22%3Afalse%7D&server_timestamps=true&doc_id=8447423912005204"
session.headers.update(
{
"Referer": "https://www.threads.net/search?q={}&serp_type=default".format(
urllib.parse.quote(query)
),
"Origin": "https://www.threads.net",
"Content-Type": "application/x-www-form-urlencoded",
"X-IG-App-ID": "238260118697367",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "cors",
"X-CSRFToken": "{}".format(
re.search("csrftoken=(.*?);", str(cookies)).group(1)
),
"Accept": "*/*",
"Sec-Fetch-Dest": "empty",
"X-FB-LSD": "{}".format(lsd),
"X-ASBD-ID": "129477",
"Content-Length": "{}".format(len(str(data))),
"X-FB-Friendly-Name": "BarcelonaSearchResultsQuery",
}
)
response2 = session.post(
"https://www.threads.net/api/graphql",
data=data,
cookies={"Cookie": "{}".format(cookies)},
verify=True,
allow_redirects=False,
)
if '"searchResults":' in response2.text:
json_response = json.loads(response2.text)
find_data = re.findall(r"kaget\?c=(.*?)&", str(json_response))
fmt.Println(
"[bold bright_black] ──>[bold green] %d Tautan Berhasil Ditemukan! "
% len(find_data),
end="\r",
)
time.sleep(1.5)
for code in find_data:
done_link = open("Penyimpanan/Done.txt", "r+").read().splitlines()
true_link = f"https://link.dana.id/kaget?c={code}"
if str(true_link) in LINK or str(true_link) in done_link:
continue
else:
LOOPING += 1
fmt.Print(
Panel(
"[bold green]%d[bold white]. Link:[bold red] %s."
% (LOOPING, true_link),
width=56,
style="bold bright_black",
title="[bold bright_black]> [Sukses] <",
title_align="center",
)
)
LINK.append("{}".format(true_link))
fmt.Println(
"[bold bright_black] ──>[bold white] Menemukan:[bold green] link.dana.id/kaget?c=%s[bold white]! "
% code,
end="\r",
)
time.sleep(0.5)
if visit == True:
(
webbrowser.open(url=true_link)
if os.name == "nt"
else os.system(f"xdg-open {true_link}")
)
for sleep in range(int(delay), 0, -1):
fmt.Println(
"[bold bright_black] ──>[bold white] Tunggu[bold green] %d[bold white] Detik! "
% sleep,
end="\r",
)
time.sleep(1)
with open("Penyimpanan/Done.txt", "a+") as w:
w.write(f"{true_link}\n")
w.close()
continue
has_next_page = bool(
json_response["data"]["searchResults"]["page_info"]["has_next_page"]
)
if end_cursor == True and has_next_page == True:
after = json_response["data"]["searchResults"]["page_info"][
"end_cursor"
]
fmt.Println(
"[bold bright_black] ──>[bold green] Berhasil Menemukan Next Cursor! ",
end="\r",
)
time.sleep(3.5)
Next_Threads_Finder(
session=session,
cookies=cookies,
query=query,
fb_dtsg=fb_dtsg,
lsd=lsd,
__hs=__hs,
jazoest=jazoest,
__hsi=__hsi,
after=after,
visit=visit,
delay=delay,
)
else:
fmt.Println(
"[bold bright_black] ──>[bold red] Tidak Menemukan Next Cursor! ",
end="\r",
)
time.sleep(3.5)
return True
else:
fmt.Println(
"[bold bright_black] ──>[bold red] Tautan Tidak Ditemukan! ",
end="\r",
)
time.sleep(5.0)
return False
def Next_Threads_Finder(
session: str,
cookies: str,
query: str,
fb_dtsg: str,
lsd: str,
__hs: str,
jazoest: int,
__hsi: int,
after: str,
visit: bool,
delay: int,
):
global LOOPING
data = f"av=&__user=0&__a=1&__req=18&__hs{urllib.parse.quote(__hs)}=&dpr=1&__ccg=UNKNOWN&__rev=&__s=&__hsi={__hsi}&__dyn=&__csr=&__comet_req=29&fb_dtsg={urllib.parse.quote(fb_dtsg)}&jazoest={jazoest}&lsd={urllib.parse.quote(lsd)}&__spin_r=&__spin_b=trunk&__spin_t=&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=BarcelonaSearchResultsRefetchableQuery&variables=%7B%22after%22%3A%22{urllib.parse.quote(after)}%22%2C%22before%22%3Anull%2C%22first%22%3A10%2C%22last%22%3Anull%2C%22meta_place_id%22%3Anull%2C%22pinned_ids%22%3Anull%2C%22query%22%3A%22{query}%22%2C%22recent%22%3A1%2C%22search_surface%22%3A%22default%22%2C%22tagID%22%3Anull%2C%22__relay_internal__pv__BarcelonaIsLoggedInrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaShowReshareCountrelayprovider%22%3Atrue%2C%22__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider%22%3Afalse%2C%22__relay_internal__pv__BarcelonaIsCrawlerrelayprovider%22%3Afalse%2C%22__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider%22%3Afalse%7D&server_timestamps=true&doc_id=26899752706339177"
session.headers.update(
{
"X-FB-Friendly-Name": "BarcelonaSearchResultsRefetchableQuery",
"Content-Length": "{}".format(len(str(data))),
"Referer": "https://www.threads.net/search?q={}&serp_type=default&filter=recent".format(
query
),
}
)
response3 = session.post(
"https://www.threads.net/api/graphql",
data=data,
cookies={"Cookie": "{}".format(cookies)},
verify=True,
allow_redirects=False,
)
if '"searchResults":' in response3.text:
json_response = json.loads(response3.text)
find_data = re.findall(r"kaget\?c=(.*?)&", str(json_response))
fmt.Println(
"[bold bright_black] ──>[bold green] %d Tautan Berhasil Ditemukan! "
% len(find_data),
end="\r",
)
time.sleep(1.5)
for code in find_data:
done_link = open("Penyimpanan/Done.txt", "r+").read().splitlines()
true_link = f"https://link.dana.id/kaget?c={code}"
if str(true_link) in LINK or str(true_link) in done_link:
continue
else:
LOOPING += 1
fmt.Print(
Panel(
"[bold green]%d[bold white]. Link:[bold red] %s."
% (LOOPING, true_link),
width=56,
style="bold bright_black",
title="[bold bright_black]> [Sukses] <",
title_align="center",
)
)
LINK.append("{}".format(true_link))
fmt.Println(
"[bold bright_black] ──>[bold white] Menemukan:[bold green] link.dana.id/kaget?c=%s[bold white]! "
% code,
end="\r",
)
time.sleep(0.5)
if visit == True:
(
webbrowser.open(url=true_link)
if os.name == "nt"
else os.system(f"xdg-open {true_link}")
)
for sleep in range(int(delay), 0, -1):
fmt.Println(
"[bold bright_black] ──>[bold white] Tunggu[bold green] %d[bold white] Detik! "
% sleep,
end="\r",
)
time.sleep(1)
with open("Penyimpanan/Done.txt", "a+") as w:
w.write(f"{true_link}\n")
w.close()
continue
has_next_page = bool(
json_response["data"]["searchResults"]["page_info"]["has_next_page"]
)
if has_next_page == True:
after = json_response["data"]["searchResults"]["page_info"]["end_cursor"]
fmt.Println(
"[bold bright_black] ──>[bold green] Berhasil Menemukan Next Cursor! ",
end="\r",
)
time.sleep(3.5)
Next_Threads_Finder(
session=session,
cookies=cookies,
query=query,
fb_dtsg=fb_dtsg,
lsd=lsd,
__hs=__hs,
jazoest=jazoest,
__hsi=__hsi,
after=after,
visit=visit,
delay=delay,
)
else:
fmt.Println(
"[bold bright_black] ──>[bold red] Tidak Menemukan Next Cursor! ",
end="\r",
)
time.sleep(3.5)
return True
else:
fmt.Println(
"[bold bright_black] ──>[bold red] Tautan Tidak Ditemukan! ",
end="\r",
)
time.sleep(5.0)
return False
if __name__ == "__main__":
Tampilkan_Banner()
if os.path.exists("Penyimpanan/Done.txt") == False:
open("Penyimpanan/Done.txt", "w").close()
Stop = False
while Stop == False:
fmt.Print(
Panel(
"[bold white]Please fill in the query or search keyword, you can type `[bold red]LIST[bold white]` to display the keyword, for examp\nle:[bold green] link dana id[bold white] *[bold red]Remember to only enter one query[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Pertanyaan] <",
title_align="center",
subtitle="[bold bright_black]╭─────",
subtitle_align="left",
)
)
query = fmt.Scan("[bold bright_black] ╰─> ")
if query.lower() == "list":
fmt.Print(
Panel(
"[bold white]List Keyword:[bold green] link dana id[bold white],[bold green]dana kaget[bold white],[bold green]dana id[bold white],[bold green]dana id kaget[bold white],[bold green]lagi sebar DANA[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Query] <",
title_align="center",
)
)
continue
else:
Stop = True
fmt.Print(
Panel(
"[bold white]You want to open the dana application automatically, type[bold green] Y[bold white] if you want and type[bold red] N[bold white] if you don't!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Pertanyaan] <",
title_align="center",
subtitle="[bold bright_black]╭─────",
subtitle_align="left",
)
)
opens = fmt.Scan("[bold bright_black] ╰─> ")
if opens.lower() != "y":
visit = False
delay = 60
else:
visit = True
fmt.Print(
Panel(
"[bold white]Please fill in the delay to open the next link, we r\necommend 30 seconds. For\nexample:[bold green] 60 seconds[bold white] *[bold red]Remember to enter only numbers[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Delay] <",
title_align="center",
subtitle="[bold bright_black]╭─────",
subtitle_align="left",
)
)
delay = int(fmt.Scan("[bold bright_black] ╰─> "))
cookies = COOKIES["Cookie"]
if "sessionid=" in str(cookies) and "csrftoken=" in str(cookies):
fmt.Print(
Panel(
"[bold white]You want to get the link on one page only? If you want you can type[bold red] Y[bold white] if not type[bold green] N[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Halaman] <",
title_align="center",
subtitle="[bold bright_black]╭─────",
subtitle_align="left",
)
)
halaman = fmt.Scan("[bold bright_black] ╰─> ")
end_cursor = False if halaman.lower() == "y" else True
fmt.Print(
Panel(
"[bold white]You can use[bold green] CTRL + C[bold white] if you want to reload and if you want to stop press[bold red] CTRL + Z[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Catatan] <",
title_align="center",
)
)
while True:
try:
fmt.Println(
"[bold bright_black] ──>[bold green] Sedang Mencari Tautan! ",
end="\r",
)
time.sleep(4.5)
L_Threads_Scanner(
cookies=cookies,
query=query,
end_cursor=end_cursor,
visit=visit,
delay=delay,
)
time.sleep(60)
except RequestException:
fmt.Println(
"[bold bright_black] ──>[bold yellow] RequestException! ",
end="\r",
)
time.sleep(10.0)
continue
except KeyboardInterrupt:
fmt.Println(" ", end="\r")
time.sleep(2.5)
continue
else:
fmt.Print(
Panel(
"[bold white]You can use[bold green] CTRL + C[bold white] if you want to reload and if you want to stop press[bold red] CTRL + Z[bold white]!",
width=56,
style="bold bright_black",
title="[bold bright_black]> [Catatan] <",
title_align="center",
)
)
while True:
try:
fmt.Println(
"[bold bright_black] ──>[bold green] Sedang Mencari Tautan! ",
end="\r",
)
time.sleep(4.5)
N_Threads_Scanner(cookies="null", query=query, visit=visit, delay=delay)
time.sleep(60)
except RequestException:
fmt.Println(
"[bold bright_black] ──>[bold yellow] RequestException! ",
end="\r",
)
time.sleep(10.0)
continue
except KeyboardInterrupt:
fmt.Println(" ", end="\r")
time.sleep(2.5)
continue