This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
tiktodv2.py
129 lines (121 loc) · 3.82 KB
/
tiktodv2.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
from selenium import webdriver
from selenium.webdriver.support.ui import Select
import pyfiglet
from os import system
import time
chrome_options = webdriver.ChromeOptions()
#chrome_options.add_argument("--headless")
chrome_options.add_argument("--log-level=3")
driver = webdriver.Chrome(r"chromedriver.exe", options=chrome_options)
driver.set_window_size(1024, 650)
"""
def loop1():
time.sleep(60)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div[1]/div[3]/div/div/button").click()
except:
print("You didn't solve the captcha yet")
loop1()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/form/div/input").send_keys(username)
except:
print("Delay")
driver.refresh()
loop1()
time.sleep(2)
driver.find_element_by_xpath('//button[@type="submit"]').click()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/button").click()
except:
print("Either failed to input or can't find the button. Need to retry")
driver.refresh()
loop1()
time.sleep(2)
print("Fans success delivered!")
driver.refresh()
time.sleep(250)
loop1()
"""
def loop2():
time.sleep(60)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div[1]/div[3]/div/div/button").click()
except:
print("You didn't solve the captcha yet")
loop2()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/form/div/input").send_keys(vidUrl)
except:
print("Delay")
driver.refresh()
loop2()
time.sleep(2)
driver.find_element_by_xpath('//button[@type="submit"]').click()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div/div/h5/button[2]").click()
except:
print("Either failed to input or can't find the button. Need to retry")
driver.refresh()
loop2()
time.sleep(2)
print("Views success delivered!")
driver.refresh()
time.sleep(250)
loop2()
"""
def loop3():
time.sleep(60)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div[1]/div[3]/div/div/button").click()
except:
print("You didn't solve the captcha yet")
loop3()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/form/div/input").send_keys(vidUrl)
except:
print("Delay")
driver.refresh()
loop3()
time.sleep(2)
driver.find_element_by_xpath('//button[@type="submit"]').click()
time.sleep(2)
try:
driver.find_element_by_xpath("/html/body/main/div/div/div[2]/div/div/div/h5/button[1]").click()
except:
print("Either failed to input or can't find the button. Need to retry")
driver.refresh()
loop3()
time.sleep(2)
print("Hearts success delivered!")
driver.refresh()
time.sleep(250)
loop3()
"""
vidUrl = "YOUR_URL" #Change YOUR_URL to your Tik Tok video URL
username = "YOUR_USERNAME" #Change YOUR_USERNAME to your Tik Tok username
system("cls")
tiktod = pyfiglet.figlet_format("TIKTOD V2", font="slant")
print(tiktod)
print("Author: https://github.com/kangoka")
print("")
"""
You can change auto value below
auto = 1 for auto fans (NEW UPDATE: They removed auto fans for now)
auto = 2 for auto views
auto = 3 for auto hearts (NEW UPDATE: They removed auto hearts for now)
"""
auto = 3
if auto == 1:
driver.get("https://homedecoratione.com/")
loop1()
elif auto == 2:
driver.get("https://homedecoratione.com/")
loop2()
else:
driver.get("https://homedecoratione.com/")
loop3()