Skip to content

Commit

Permalink
Update tiktok.py (#1070)
Browse files Browse the repository at this point in the history
proxy support fix
  • Loading branch information
ErVijayRaghuwanshi committed Nov 28, 2023
1 parent 2b0882e commit bffc3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TikTokApi/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async def create_sessions(
override_browser_args = ["--headless=new"]
headless = False # managed by the arg
self.browser = await self.playwright.chromium.launch(
headless=headless, args=override_browser_args
headless=headless, args=override_browser_args, proxy=random_choice(proxies)
)

await asyncio.gather(
Expand Down

0 comments on commit bffc3d4

Please sign in to comment.