Skip to main content
Quarantined

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for extrahtml 0.1.2
File Size Uploaded Provenance Actions
extrahtml-0.1.2.tar.gz 4.1 kB Without provenance Details for extrahtml-0.1.2.tar.gz

Release files / extrahtml-0.1.2.tar.gz

Download URL extrahtml-0.1.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
39ab856dfe0244f66bb7f496b124a1d71166366b154339c55dffce1ba626ccc3
BLAKE2b-256 checksum
How to use checksums
6a33cc7e5440961d12e871f1f94bbadfd3c3581cf50caa0ec2fc58d8d3c0f141
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page