Skip to content

Enable custom startup logic for browser context and pages #1235

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gbiz123
Copy link
Contributor

@gbiz123 gbiz123 commented Apr 30, 2025

To implement custom functionality, such as login or captcha solving, when the session is being created, you may use the keyword arguments browser_context_factory and page_factory. These arguments are callable functions that TikTok-Api will use to launch your browser and pages, and allow you to perform custom actions on the page before the session is created.

This functionality does not interfere with exisiting TikTok-Api functionality, but allows the user a great deal of flexibility for custom use cases.

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.

1 participant