MCPcopy
hub / github.com/xtekky/TikTok-ViewBot / main

Method main

test.py:40–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 }
39
40 def main(self):
41 os.system(self.clear)
42 self.change_title("TikTok Automator using zefoy.com | Github: @xtekky")
43
44 print(self.color + text)
45 print("\n" + self._print("Waiting for Zefoy to load... 502 Error = Blocked country or VPN is on"))
46
47 self.driver.get("https://zefoy.com")
48 self.wait_for_xpath(self.captcha_box)
49
50 print(self._print("Site loaded, enter the CAPTCHA to continue."))
51 print(self._print("Waiting for you..."))
52
53 self.wait_for_xpath(self.xpaths["followers"])
54 os.system(self.clear)
55 status = self.check_status()
56
57 print(self.color + text)
58 print()
59 print(self._print(f"Join our {self.color}Discord Server{Fore.WHITE} for exclusive FREE tools."))
60 print(self._print(f"You can also get updates when Zefoy updates the bots and more."))
61 print(self._print(f"Select your option below." + "\n"))
62
63 counter = 1
64 for thing in status:
65 print(self._print(f"{thing} {status[thing]}", counter))
66 counter += 1
67
68 print(self._print(f"Discord / Support", "7"))
69 option = int(input("\n" + self._print(f"")))
70
71 if option == 1:
72 div = "7"
73 self.driver.find_element("xpath", self.xpaths["followers"]).click()
74
75 elif option == 2:
76 div = "8"
77 self.driver.find_element("xpath", self.xpaths["hearts"]).click()
78
79 elif option == 3:
80 div = "9"
81 self.driver.find_element("xpath", self.xpaths["comment_hearts"]).click()
82
83 elif option == 4: #Views
84 div = "10"
85 self.driver.find_element("xpath", self.xpaths["views"]).click()
86
87 elif option == 5:
88 div = "11"
89 self.driver.find_element("xpath", self.xpaths["shares"]).click()
90
91 elif option == 6:
92 div = "12"
93 self.driver.find_element("xpath", self.xpaths["favorites"]).click()
94
95 elif option == 7:
96 webbrowser.open('discord.gg/onlp')
97 os._exit(1)

Callers 1

test.pyFile · 0.45

Calls 5

change_titleMethod · 0.95
_printMethod · 0.95
wait_for_xpathMethod · 0.95
check_statusMethod · 0.95
send_botMethod · 0.95

Tested by

no test coverage detected