Conversation
|
Hi is it working and is it better at bot detection evasion? @iloveitaly because I tried with the changes in your PR, there was not much significant change, the session was still classified as bot. Please update the PR with more changes if you have been able to make it work. |
|
@gaurav-cointab use https://camoufox.com/ instead. This is working for me, at least better than the stealth plugins. |
|
|
| # camofoux | ||
| if True: | ||
| return await browser.new_context() |
There was a problem hiding this comment.
| # camofoux | |
| if True: | |
| return await browser.new_context() |
Returning a stock camoufox browser without the extra config params below would break a bunch of behavioral stuff, they're not just there for stealth.
| CAMOUFOX = True | ||
|
|
There was a problem hiding this comment.
| CAMOUFOX = True | |
| CAMOUFOX = True | |
this should definbitely be an env var instead of hardcoded.
Switching the entire to project to Firefox instead of chromium is a massive change to just force everyone into.
There was a problem hiding this comment.
yeah, totally, i just threw this up quickly to show others where the entrypoints were
if there's interest in merging this in for real i will put more effort into it
There was a problem hiding this comment.
ah ok no worries. Support for non-chromium browsers did just get merged recently #950, so there may be some interest in this again. just needs to be added here browser/browser.py:_setup_standard_browser
|
I think we're going to focus all our effort on patchright right now via #857. While I'd love to support more browsers, in practice it adds a lot more surface area for things to break subtly and I think patchright will get us most of the way there if the real goal is just to avoid bot detection. If you feel really strongly that this is mistake / if you think camoufox can beat patchright feel free to comment back here and we can continue the discussion. thanks for all your work and time on this so far either way! |
The existing bot evasion doesn't work at all. This is slightly better:
https://github.com/tinyfish-io/tf-playwright-stealth
But still fails on many sites. Camoufox is a impressive piece of engineering and
it looks to be compatible with the playwright API.
I just got this working, so before putting more effort I want to kick the tires and see what breaks.
Wanted to post this here in case others were running into issues as well.