Skip to content

Fix Broken StealthConfig #1230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2025
Merged

Fix Broken StealthConfig #1230

merged 1 commit into from
Apr 13, 2025

Conversation

gbiz123
Copy link
Contributor

@gbiz123 gbiz123 commented Apr 11, 2025

StealthConfig is broken by default on newer versions of playwright. There are three options that are set that make the browser open up to a blank page, causing an empty response from TikTok error:

  • navigator_languages
  • navigator_user_agent
  • navigator_vendor

In this pull request, I set these parameters to False by default, fixing the blank screen when TikTok launches. This Pull request is essential to maintaining basic functionality on different versions of Playwright. Thank you for your consideration.

… and navigator vendor set to True is broken by default. Switched those options to false
@davidteather davidteather changed the base branch from main to v7.1.0 April 13, 2025 18:17
@davidteather davidteather merged commit a730afd into davidteather:v7.1.0 Apr 13, 2025
0 of 2 checks passed
@davidteather
Copy link
Owner

❤️ ❤️ ❤️

davidteather added a commit that referenced this pull request Apr 13, 2025
…up when no sessions, dealing with async delay properly), chores (exposed TiktokPlaywrightSession, cleanup `create_session`) (#1231)

* bump version to 7.1.0
* fix broken stealth config. Navigator languages, navigator user agent, and navigator vendor set to True is broken by default. Switched those options to false (#1230)
* headless=True
* Fix async generator return types (#1228)
* Async generators should return `AsyncIterator` instead of `Iterator`.
* if user doesn't create sessions before invoking things that depend on _get_session, raise an error instead of trying to access undefined self.num_sessions (#1227)
* expose TiktokPlaywrightSession (#1219)
* expose the TiktokPlaywrightSession class to be used for typing
* Clean_up session (#1217)
* clean up the page and context in a failed attempt
* prevent to block event loop when creating multiple sessions (#1221)
Co-authored-by: David Teather <[email protected]>
* chore: remove outdated docs
* fix: incorrect len() evaluation
* update tests to support env var to specify headless

---------

Co-authored-by: Greg Bizup <[email protected]>
Co-authored-by: Ekin Dursun <[email protected]>
Co-authored-by: Oliver Xu <[email protected]>
Co-authored-by: leegunwoo98 <[email protected]>
Co-authored-by: Gwanbin Park <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants