Skip to content

Commit

Permalink
v2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezedip authored Jan 31, 2025
1 parent 872f4d2 commit 75576a8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ 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.12.0
- More colors Format.
- Added an check to detect whenever zefoy is down.
- Bug Fixes.
# Version 2.13.0
- Fixed Session Not Created Exception.
- Fixed some logs.
- Added python version detection.


### for more info check [*versionslog.md*](/~https://github.com/Sneezedip/Tiktok-Booster/blob/main/versionslog.MD)
Expand Down
2 changes: 1 addition & 1 deletion Static/Static.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ class Static():
'favorites' : '//*[@id="c2VuZF9mb2xsb3dlcnNfdGlrdG9L"]/div[1]/div/form/button',
'hearts' : '//*[@id="c2VuZE9nb2xsb3dlcnNfdGlrdG9r"]/div[1]/div/form/button'
}
ChromeOptions = ["--window-size=1920,1080","--disable-gpu","--incognito",f"user-agent={UserAgent().random}","--no-sandbox","--enable-unsafe-swiftshader"]
ChromeOptions = ["--window-size=1920,1080","--disable-gpu","--incognito",f"user-agent={UserAgent().random}","--no-sandbox","--enable-unsafe-swiftshader","--log-level=3"]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.12.0
2.13.0
23 changes: 19 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import time
import configparser
import subprocess
import os
import sys
import zipfile
Expand All @@ -26,6 +27,7 @@
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import ElementNotInteractableException
from selenium.common.exceptions import SessionNotCreatedException
from datetime import datetime, timedelta
from discordwebhook import Discord
from Modules.VideoInfo import TikTokVideoInfo
Expand Down Expand Up @@ -88,7 +90,16 @@ def parse_cooldown(text):

return minutes * 60 + seconds


def check_issues():
major, minor = sys.version_info[:2]
if (major, minor) < (3, 12):
os.system("cls") if os.name == 'nt' else os.system("clear")
print(Fore.RED + Style.BRIGHT + "[ERROR] TikTok Booster requires Python 3.12 or higher!")
print(Fore.YELLOW + f" You are using Python {major}.{minor}. Please update it.")
print(Fore.CYAN + "\n➡ You can update Python from:")
print(Fore.GREEN + " - Microsoft Store: Search for 'Python' and update.")
print(Fore.GREEN + " - Official Website: https://www.python.org/downloads/")
sys.exit(1)

def check_version(current_version):
"""Check if a new version of the program is available"""
Expand Down Expand Up @@ -183,7 +194,7 @@ def __init__(self):
for option in Static.ChromeOptions:
self.options.add_argument(option)
if config.getboolean('Settings', 'HEADLESS'):
self.options.add_argument("--headless=old")
self.options.add_argument("--headless=new")

self.driver = webdriver.Chrome(options=self.options)

Expand Down Expand Up @@ -564,10 +575,14 @@ def _menu(self):


if __name__ == "__main__":
check_version("2.12.0")
check_issues()
check_version("2.13.0")
if not ProgramUsage.vk():
sys.exit()
os.system("cls") if os.name == 'nt' else os.system("clear")
show_credits()
is_first_run()
TikTokBooster()
try:
TikTokBooster()
except SessionNotCreatedException:
print("Session was not created")
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ bs4~=0.0.2
beautifulsoup4~=4.12.3
uuid
pyperclip
halo
halo
websocket-client
5 changes: 5 additions & 0 deletions versionslog.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 2.13.0
- Fixed Session Not Created Exception.
- Fixed some logs.
- Added python version detection.

# Version 2.12.0
- More colors Format.
- Added an check to detect whenever zefoy is down.
Expand Down

0 comments on commit 75576a8

Please sign in to comment.