| 17 | |
| 18 | |
| 19 | class zefoy: |
| 20 | |
| 21 | def __init__(self): |
| 22 | self.driver = uc.Chrome() |
| 23 | self.captcha_box = '/html/body/div[5]/div[2]/form/div/div' |
| 24 | self.clear = "clear" |
| 25 | |
| 26 | if platform.system() == "Windows": |
| 27 | self.clear = "cls" |
| 28 | |
| 29 | self.color = Fore.BLUE |
| 30 | self.sent = 0 |
| 31 | self.xpaths = { |
| 32 | "followers" : "/html/body/div[6]/div/div[2]/div/div/div[2]/div/button", |
| 33 | "hearts" : "/html/body/div[6]/div/div[2]/div/div/div[3]/div/button", |
| 34 | "comment_hearts": "/html/body/div[6]/div/div[2]/div/div/div[4]/div/button", |
| 35 | "views" : "/html/body/div[6]/div/div[2]/div/div/div[5]/div/button", |
| 36 | "shares" : "/html/body/div[6]/div/div[2]/div/div/div[6]/div/button", |
| 37 | "favorites" : "/html/body/div[6]/div/div[2]/div/div/div[7]/div/button", |
| 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" |