pyppeteerstealth
A bunch of hacks from different websites
Note!
- Does not yet pass https://arh.antoinevastel.com/bots/areyouheadless please help!
- Probably wont help where sites are using https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API (
navigator.userAgentData.brandsetc) - Designed to work with the puppeteer fetcher at https://changedetection.io
If you know what is missing, please make a PR!!!
If you compare loading https://arh.antoinevastel.com/bots/ in your application, versus in your browser you might be able to see what is required to get the fingerprint closer to a "normal" browser (further away from a "headless" browser)
This is intended to be used with https://github.com/dgtlmoon/pyppeteer-ng and is also part of the https://changedetection.io project.
browser = await pyppeteer_instance.connect(browserWSEndpoint="ws://127.0.0.1:3000",
ignoreHTTPSErrors=True
)
self.page = (pages := await browser.pages) and len(pages) or await browser.newPage()
# Should be set with setUserAgent
user_agent = next((value for key, value in request_headers.items() if key.lower().strip() == 'user-agent'), DEFAULT_USER_AGENT)
await self.page.setUserAgent(user_agent)
try:
from pyppeteerstealth import inject_evasions_into_page
except ImportError:
logger.debug("pyppeteerstealth module not available, skipping")
pass
else:
await inject_evasions_into_page(self.page)
response = await self.page.goto("https://example.com", waitUntil="load")
Last report from https://bot.sannysoft.com/
Other related interesting projects/alternatives
Metadata
Release files for pyppeteerstealth 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyppeteerstealth-0.0.5.tar.gz | 10.1 kB | Without provenance | Details for pyppeteerstealth-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyppeteerstealth-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyppeteerstealth-0.0.5-py2.py3-none-any.whl |
Total release size: 20.9 kB
Release files / pyppeteerstealth-0.0.5.tar.gz
| Download URL | pyppeteerstealth-0.0.5.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4236a92742049aadf31eb6dd6900f93b98c3486a596676d2b1c7925457c9433b
|
|
BLAKE2b-256 checksum How to use checksums |
0eb10827f4b6ccbd74d729159a3e9060152fc15fd8a6cda5f5c8d91b31df5256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pyppeteerstealth-0.0.5-py2.py3-none-any.whl
| Download URL | pyppeteerstealth-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5a934e16805fa982f736eaf86ccfbc959a4b8131bb5d3152ce310ab378641549
|
|
BLAKE2b-256 checksum How to use checksums |
7cfa20a8d3d92284f04c0a3be528f4e02aa979db1ba892f8f08c4f497a1503ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for pyppeteerstealth 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.