Skip to content

[Feature]: Add support for undetectable browsers #512

Open
@plord12

Description

@plord12

Webscraping has become quite tricky recently, with CDN's detecting bots pretty easily. It would be great if we could add support for one of the "undetectable" browsers. For example -

Does the upstream have similar features?

Camoufox does support playwright, but only with python.

Is your feature request related to a problem? Please describe.

Many websites now spot playwright-go / playwright-go-stealth and block access.

Describe the solution you'd like

In an ideal world, it would be as simple as -

playwright.Install(&playwright.RunOptions{Browsers: []string{"camoufox"}})
...
pw.Camoufox.Launch()

Additional context

Camoufax v132.0-beta.15 and before supplied a launch binary which was usable with playwright-go by simply setting ExecutablePath :

pw.Firefox.Launch(playwright.BrowserTypeLaunchOptions{ExecutablePath: playwright.String("launch"))})

However launch has since been removed.

To keep my scraping going, I've taken the launch source into my project, https://github.com/plord12/webscrapers (specifically https://github.com/plord12/webscrapers/tree/main/launch and https://github.com/plord12/webscrapers/blob/main/utils/utils.go#L140). This works with the latest Camoufox release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions