Skip to content

Add SCRAPER_BROWSER_TYPE / SCRAPER_EXECUTABLE_PATH env vars#1159

Draft
feder-cr wants to merge 1 commit into
ItzCrazyKns:masterfrom
feder-cr:add-scraper-browser-type-env
Draft

Add SCRAPER_BROWSER_TYPE / SCRAPER_EXECUTABLE_PATH env vars#1159
feder-cr wants to merge 1 commit into
ItzCrazyKns:masterfrom
feder-cr:add-scraper-browser-type-env

Conversation

@feder-cr

@feder-cr feder-cr commented Jul 2, 2026

Copy link
Copy Markdown

The scraper's browser launch was hardcoded to chromium with no way to point it at a different engine or binary. Adds SCRAPER_BROWSER_TYPE (default 'chromium', unchanged behavior) and SCRAPER_EXECUTABLE_PATH, and guards the Chromium-specific channel/args behind the default case. Motivated by invisible_playwright, a Playwright wrapper around a Firefox build patched at the source level for a realistic fingerprint, useful for sites that fingerprint the scraper. Opened as draft, happy to adjust naming or scope.


Summary by cubic

Makes the scraper’s browser configurable so you can choose the playwright engine and optionally point to a custom binary. Defaults stay the same (Chromium with current flags), so no changes needed for existing setups.

  • New Features
    • SCRAPER_BROWSER_TYPE selects chromium, firefox, or webkit (default: chromium).
    • SCRAPER_EXECUTABLE_PATH lets you specify a custom browser executable.
    • Chromium-only channel and flags are applied only when using chromium.

Written for commit 14a79d7. Summary will update on new commits.

Review in cubic

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