Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Update TiktokStreamKeyGenerator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Loukious authored Jul 13, 2024
1 parent 4381d76 commit 927bb4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions TiktokStreamKeyGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@
from Libs.device_gen import Applog, Xlog
from Libs.xgorgon import Gorgon
from Libs.signature import ladon_encrypt, get_x_ss_stub
from dotenv import load_dotenv

load_dotenv()



class Stream:
def __init__(self):
self.s = requests.session()
self.s.headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) TikTokLIVEStudio/0.49.4 Chrome/104.0.5112.102 Electron/20.1.0-tt.7.release.mssdk.27 TTElectron/20.1.0-tt.7.release.mssdk.27 Safari/537.36",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) TikTokLIVEStudio/0.61.0 Chrome/108.0.5359.215 Electron/22.3.18-tt.8.release.main.38 TTElectron/22.3.18-tt.8.release.main.38 Safari/537.36",
}
with open("cookies.json", "r") as file:
cookies_file = json.load(file)
Expand Down Expand Up @@ -175,7 +173,7 @@ def createStream(
# Priority region for the stream
"priority_region": priority_region,
"live_mode": "6",
"version_code": "9.99.9"
"version_code": "0.61.0"
}
data = {
"title": title,
Expand Down Expand Up @@ -798,4 +796,4 @@ def copy_to_clipboard(content):
check_cookies()
load_config()

app.mainloop()
app.mainloop()

0 comments on commit 927bb4d

Please sign in to comment.