-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTTReport.py
52 lines (41 loc) · 1.7 KB
/
TTReport.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
import requests
import time
def print_colored_text(text, color_code):
print(f"{color_code}{text}\033[0m")
def main():
required_prefix = "https://www.tiktok.com/aweme/v2/aweme/"
green_color = "\033[92m"
blue_color = "\033[94m"
reset_color = "\033[0m"
# Print big colored text
big_text = """
_____ _____ ____ _
|_ _|_ _| _ \ ___ _ __ ___ _ __| |_
| | | | | |_) / _ \ '_ \ / _ \| '__| __|
| | | | | _ < __/ |_) | (_) | | | |_
|_| |_| |_| \_\___| .__/ \___/|_| \__|
By Mon0 |_|
(use this at yout own risk)
"""
print_colored_text(big_text, green_color)
report_count = 0
while True:
url = input("Please enter the Report URL from inspect: ")
# Check if the URL starts with the required prefix
if not url.startswith(required_prefix):
print_colored_text("Wrong URL, please enter the Report URL from inspect!", blue_color)
continue # Ask for the URL again
while True:
try:
response = requests.get(url)
report_count += 1
print_colored_text(f"Successfully Reported | Reports count: {report_count}", green_color)
time.sleep(1) # Wait for 1 second before making the next request
except requests.exceptions.RequestException as e:
print_colored_text(f"An error occurred: {e}", green_color)
break # Exit the loop if there's an error
while True:
if response.status_code == 400:
print_colored_text ("Report Error" , red_color)
if __name__ == "__main__":
main()