Description
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.