AtuboDad / playwright_stealth

playwright stealth
MIT License
541 stars 71 forks source link

override user agent metadata and other fixes #29

Open iloveitaly opened 6 months ago

iloveitaly commented 6 months ago

This PR contains improvements from this branch in addition to further improvements necessary to mock out the navigator.userAgentData object which was causing bot detection failures in my case.

I've also made some slight improvements to the loading code to make it less repetitive.

I have some additional improvements locally that enable us to more easily determine possible differences betweeen headless & headful mode that I'd like to submit in a separate PR

tobwen commented 3 months ago

Good work! It worked for all but Webkit - but only for playwright==1.43.0

playwright==1.43.0

chromium

image

firefox

image

webkit

image

playwright>1.43.0

On latest playwright, it fails:

chromium

image

firefox

image

Mattwmaster58 commented 2 months ago

@tobwen could the failures be related to #31 ?