This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.
extrahtml
=========
extrahtml is a small Python library that fetches HTML from a URL using
different engines: requests, Selenium, or Playwright. You can choose the
engine that fits your needs and optionally enable a bypass mode for
maximum stealth when dealing with bot-protected sites.
INSTALLATION
------------
Install the core package:
pip install extrahtml
Install optional dependencies for specific engines:
pip install extrahtml[selenium] # Selenium engine
pip install extrahtml[playwright] # Playwright engine
pip install extrahtml[cloudscraper] # Cloudscraper bypass for requests
pip install extrahtml[all] # Everything
For Playwright, you also need to install the browser binaries:
playwright install chromium
USAGE
-----
Requests engine (fast, no JavaScript):
from extrahtml import RequestsEngine
engine = RequestsEngine(bypass=True)
html = engine.get("https://example.com")
print(html)
Selenium engine (JavaScript rendering, optional stealth):
from extrahtml import SeleniumEngine
engine = SeleniumEngine(bypass=True, headless=True)
html = engine.get("https://example.com")
print(html)
Playwright engine (JavaScript rendering, optional stealth):
from extrahtml import PlaywrightEngine
engine = PlaywrightEngine(bypass=True, headless=True, browser_type="chromium")
html = engine.get("https://example.com")
print(html)
BYPASS MODE
-----------
When bypass=True is passed to an engine, the library tries to enable all
available stealth measures:
- RequestsEngine: uses Cloudscraper (if installed), random User-Agents
from fake-useragent, and random delays between requests.
- SeleniumEngine: uses undetected-chromedriver (if installed) and
additional Chrome flags to hide automation markers.
- PlaywrightEngine: applies playwright-stealth patches (Chromium only)
and launches the browser with a realistic viewport and User-Agent.
Note that bypass mode does not guarantee success against every anti-bot
system. For serious scraping tasks, combine it with proxies, realistic
timing, and possibly a headful browser.
LICENSE
-------
MIT License. See the LICENSE file for details.
Metadata
Release files for extrahtml 0.1.0
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 |
|---|---|---|---|---|
| extrahtml-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for extrahtml-0.1.0.tar.gz |
Release files / extrahtml-0.1.0.tar.gz
| Download URL | extrahtml-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c660a56c84ef4178c939b61ad706de8f274ccb4265475db1ee523d9235da8c3
|
|
BLAKE2b-256 checksum How to use checksums |
292fbb4e04c393522e63b65de2f9b085e60cf4d5e54650383199712898ce7ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Security for extrahtml 0.1.0
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.