-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
[BUG] Can't impersonate browsers in flatpak #362
Comments
Weird, can you somehow unpack the bundle and check if the files were correctly included? |
For what file should I look for? impresonate.py is there and is correct |
Does it work without the |
Yes |
That's even more weird, do you have any additional information? |
I don't know what could be the issue either. It is possible that it is related to sandboxing? |
I have a similar issue with the Arch package (no Flatpak), which is currently on v0.7.1: from curl_cffi import requests
BROWSERS = [
'chrome99',
'chrome99_android',
'chrome100',
'chrome101',
'chrome104',
'chrome107',
'chrome110',
'chrome116',
'chrome119',
'chrome120',
'chrome123',
'chrome124',
'edge99',
'edge101',
'safari15_3',
'safari15_5',
'safari17_0',
'safari17_2_ios',
]
HOST = 'http://localhost:8080'
for browser in BROWSERS:
status = 'ok'
try:
requests.get(HOST, impersonate=browser)
except Exception:
status = 'error'
print(f'{browser}: {status}')
The error in each case is OS: Arch Linux x86_64 |
Sorry, I don't have control over 3rd-party packages. |
Describe the bug
With curl_cffi 0.7.1, when I try to impersonate a browser, it gives this error: (happens with every browser)
Note: this does not happen when I run curl_cffi on my system normally.
To Reproduce
Within the flatpak in Newelle source code, just running
or with any other browser, it gives the error
Expected behavior
It just works
Versions
pip freeze
dumpThe text was updated successfully, but these errors were encountered: