Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Loukious committed Aug 12, 2024
2 parents 4b1dadd + b5ab119 commit 1499394
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion StreamLabsTikTokStreamKeyGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def load_token():
elif platform.system() == 'Darwin': # macOS
path_pattern = os.path.expanduser('~/Library/Application Support/slobs-client/Local Storage/leveldb/*.log')
else:
messagebox.showinfo("Unsupported OS", "This script supports only Windows and macOS.")
return None

# Get all files matching the pattern
Expand Down
9 changes: 8 additions & 1 deletion TokenRetriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ def load_cookies(self, driver):
driver.add_cookie(cookie)

def retrieve_token(self):
self.driver = uc.Chrome()
chrome_options = uc.ChromeOptions()
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--ignore-certificate-errors") # Ignore SSL certificate errors
chrome_options.add_argument("--disable-web-security") # Disable web security
chrome_options.add_argument("--allow-running-insecure-content") # Allow insecure content

self.driver = uc.Chrome(options=chrome_options)
self.driver.get("https://www.tiktok.com") # Load a page first before setting cookies
self.load_cookies(self.driver)
self.driver.get(self.streamlabs_auth_url)
Expand Down

0 comments on commit 1499394

Please sign in to comment.