forked from 2wz/tiktok-view-bot-leaked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAurora.py
64 lines (54 loc) · 2.89 KB
/
Aurora.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
import ssl
import requests
from threading import active_count, Thread
from random import randint
from urllib3.exceptions import InsecureRequestWarning
from http import cookiejar
class BlockCookies(cookiejar.CookiePolicy):
return_ok = set_ok = domain_return_ok = path_return_ok = lambda self, *args, **kwargs: False
netscape = True
rfc2965 = hide_cookie2 = False
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
ssl._create_default_https_context = ssl._create_unverified_context
r = requests.Session()
r.cookies.set_policy(BlockCookies())
def stats(item_id):
while True:
try: #this request is used to make views
with r.post(f"https://api.toutiao50.com/aweme/v1/aweme/stats/?channel=googleplay&device_type=SM-G9250&device_id={randint(1000000000000000000, 9999999999999999999)}&os_version=10&version_code=220400&app_name=musically_go&device_platform=android&aid=1340", headers={"content-type": "application/x-www-form-urlencoded; charset=UTF-8", "user-agent": "com.zhiliaoapp.musically.go/220400 (Linux; U; Android 10; en_US; SM-G9250; Build/MMB25K.G9250ZTU5DPC5; Cronet/TTNetVersion:5f9540e5 2021-05-20 QuicVersion:47555d5a 2020-10-15)"}, data=f"item_id={item_id}&play_delta=1", stream=True, verify=False) as response:
if (response.json()["status_code"] == 0):
break
else:
continue
except:
continue
if (__name__ == "__main__"):
#lol idiot skid
item_id = str(input('''
▄▄▄· ▄• ▄▌▄▄▄ ▄▄▄ ▄▄▄·
▐█ ▀█ █▪██▌▀▄ █· ▄█▀▄ ▀▄ █·▐█ ▀█
▄█▀▀█ █▌▐█▌▐▀▀▄ ▐█▌.▐▌▐▀▀▄ ▄█▀▀█
▐█▪ ▐▌▐█▄█▌▐█•█▌▐█▌.▐▌▐█•█▌▐█▪ ▐▌
▀ ▀ ▀▀▀ .▀ ▀ ▀█▄▀▪.▀ ▀ ▀ ▀
Made by dx and skidded with <3 by auut
[?] Video Link >>>
'''))
if ("vm.tiktok.com" in item_id or "vt.tiktok.com" in item_id):
item_id = r.head(item_id, stream=True, verify=False, allow_redirects=True).url.split("/")[5].split("?", 1)[0]
else:
item_id = item_id.split("/")[5].split("?", 1)[0]
amount = int(input("[?] How many views do you want (0 = Infinite) >>> ")) #infinite stop at 6M views..
print("")
print("[i] Sending Views...") #sending skid views
if (amount == 0):
for _ in iter(int, 1):
while True:
if (active_count() <= 5000): #5000 views per seconds
Thread(target=(stats), args=(item_id,)).start()
break
else:
for _ in range(amount):
while True:
if (active_count() <= 5000):
Thread(target=(stats), args=(item_id,)).start()
break