Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezedip authored Dec 22, 2024
1 parent ee63ae2 commit f475d9b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ To run the program, follow these steps:
4. **Wait:**
- Allow the program to run and complete its tasks. This may take some time depending on the configurations and operations being performed.

# Version 2.10.1
rollback version
# Version 2.11.0
- Cross-platform support (Windows and Linux)
- Improved Perfomance



Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.10.1
2.11.0
32 changes: 24 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from Modules.Usage import ProgramUsage
from Modules.BannersHandler import Handler
from Static.InitialInfo import InitialInfo
import platform
try:
import hashlib
import requests
Expand Down Expand Up @@ -54,6 +55,8 @@
SLEEP = 15
SKIP_WEBHOOK_VERIFICATION = config.getboolean('Settings', 'SKIP_WEBHOOK_CONFIGURATION')

OPERATING_SYSTEM = platform.system()

def is_first_run():
"""Check if it's the first run of the program"""
file_path = os.path.join(tempfile.gettempdir(), 'Ttkbooster.txt')
Expand Down Expand Up @@ -100,12 +103,19 @@ def check_version(current_version):
elif u == "n":
return


if not os.path.exists('Tesseract'):
print(f'{INFO}{Fore.WHITE}{ProgramUsage.Translations("credits",1)}{Style.RESET_ALL}', end="\r")
url = 'https://drive.usercontent.google.com/download?id=10X_TEAwUic4v3pt7TT4w3QNRcS1DNq87&export=download&authuser=0&confirm=t&uuid=19bcdcbd-e7ce-4617-8f41-caca15b5ab17&at=APZUnTWgmGxytaTOOxw-o87dMp8z%3A1720311459869'
extract_to = './'
ProgramUsage.download(INFO,WAITING,SUCCESS,WARNING,url, extract_to)
if OPERATING_SYSTEM == "Windows":
if not os.path.exists('Tesseract'):
print(f'{INFO}{Fore.WHITE}{ProgramUsage.Translations("credits",1)}{Style.RESET_ALL}', end="\r")
url = 'https://drive.usercontent.google.com/download?id=10X_TEAwUic4v3pt7TT4w3QNRcS1DNq87&export=download&authuser=0&confirm=t&uuid=19bcdcbd-e7ce-4617-8f41-caca15b5ab17&at=APZUnTWgmGxytaTOOxw-o87dMp8z%3A1720311459869'
extract_to = './'
ProgramUsage.download(INFO,WAITING,SUCCESS,WARNING,url, extract_to)
elif OPERATING_SYSTEM == "Linux":
if not os.path.exists("/usr/bin/tesseract"):
print(f'{INFO}{Fore.WHITE}{ProgramUsage.Translations("credits",1)}{Style.RESET_ALL}', end="\r")
os.system("sudo apt install tesseract-ocr")
else:
print(f"{WARNING}Unsupported Operating System ({platform.system()})! Exiting...")
sys.exit()


class TikTokBooster:
Expand Down Expand Up @@ -178,7 +188,13 @@ def __init__(self):

time.sleep(2)

pytesseract.pytesseract.tesseract_cmd = r'Tesseract/tesseract.exe'
if OPERATING_SYSTEM == "Windows":
pytesseract.pytesseract.tesseract_cmd = r'Tesseract/tesseract.exe'
elif OPERATING_SYSTEM == "Linux":
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
else:
print(f"{WARNING}Unsupported Operating System ({platform.system()})! Exiting...")
sys.exit()
try:
WebDriverWait(self.driver, SLEEP).until(ec.presence_of_element_located(
(By.XPATH, '/html/body/div[8]/div[2]/div[2]/div[3]/div[2]/button[1]'))).click()
Expand Down Expand Up @@ -544,7 +560,7 @@ def _menu(self):


if __name__ == "__main__":
check_version("2.10.1")
check_version("2.11.0")
if not ProgramUsage.vk():
sys.exit()
os.system("cls") if os.name == 'nt' else os.system("clear")
Expand Down
4 changes: 4 additions & 0 deletions versionslog.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 2.11.0
- Cross-platform support (Windows and Linux)
- Improved Perfomance

# Version 2.10.1
rollback version

Expand Down

0 comments on commit f475d9b

Please sign in to comment.