-
Notifications
You must be signed in to change notification settings - Fork 765
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
Camoufox integration PoC #2836
Comments
Are you suggesting running Camoufox from JS? It's just a hunch, but that might be tricky. |
Yes, we already discussed how to approach this today with @barjin and @Pijukatel, it should be actually quite simple. But we'll need to depend on running one python script under the hood for now to generate the launch options. |
Summary of the discussion and some links: Regarding the plan for gradual implementation, it can have following steps:
Here is reference of how Camoufox is started through Playwright in Python: https://github.com/daijro/camoufox/blob/main/pythonlib/camoufox/async_api.py#L95 |
Adds a Camoufox-based crawler template (`camoufox-ts`). Compared to the basic `playwright-ts` template, `camoufox-ts` uses the `camoufox-js` package, which finds the correct latest Camoufox binary in [GitHub Releases](https://github.com/daijro/camoufox/releases) assets, downloads it and passes the correct launch options to it. The `main.ts` script is modified to run the downloaded binary with the correct `launchOptions`. Related to #2836
Create a PoC of crawlee project using camoufox. Can be a template initially, before we agree on the next steps.
It should be able to run the python script to generate browser launch options and feed that to the camoufox as part of our code.
In the long run, we can consider having CamoufoxCrawler or a camoufox template with a guide.
The text was updated successfully, but these errors were encountered: