Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override user agent metadata and other fixes #29

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

iloveitaly
Copy link

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

paveldudka and others added 11 commits March 6, 2024 18:48
Updated goto link
Replaced asyncio.eventloop() to asyncio.run()
Added stealth arguments
Added full page screenshot for stealth with passed arguments with desired value
*in this case: mimicking a mobile device*
support msedge (HeadlessEdg/)
Remove deprecated pkg_resources references
log not exist
replace all 'Headless'
del all 'Headless'
@tobwen
Copy link

tobwen commented Aug 9, 2024

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
Copy link
Contributor

@tobwen could the failures be related to #31 ?

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.

6 participants