Skip to main content

Hypotonic

Fast asynchronous web scraper with minimalist API inspired by awesome node-osmosis.

Hypotonic provides SQLAlchemy-like command chaining DSL to define HTML scrapers. Everything is executed asynchronously via asyncio and all dependencies are pure Python. Supports querying by CSS selectors with Scrapy's pseudo-attributes. XPath is not supported due to libxml requirement.

Hypotonic does not natively execute JavaScript on websites and it is recommended to use prerender.

Installing

Hypotonic requires Python 3.6+.

pip install hypotonic

Example

from hypotonic import Hypotonic

data, errors = (
  Hypotonic()
    .get('http://books.toscrape.com/')
    .paginate('.next a::attr(href)', 5)
    .find('.product_pod h3')
    .set('title')
    .follow('a::attr(href)')
    .set({'price': '.price_color',
          'availability': 'p.availability'})
    .data()
)

Metadata

Release files for hypotonic 0.0.15

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

Source distribution (sdist)

Source distribution for hypotonic 0.0.15
File Size Uploaded Provenance Actions
hypotonic-0.0.15.tar.gz 5.9 kB Without provenance Details for hypotonic-0.0.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hypotonic 0.0.15
File Interpreter ABI Platform Actions
hypotonic-0.0.15-py3-none-any.whl Python 3 none any Details for hypotonic-0.0.15-py3-none-any.whl

Total release size: 12.4 kB

Release files / hypotonic-0.0.15.tar.gz

Download URL hypotonic-0.0.15.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
56b27bf493841d0f011b6052d1069dc83158c2e3cfde612366ceb6f2b9a573ae
BLAKE2b-256 checksum
How to use checksums
b56766978984c8184f558b63bcd8b4cdc8fd09f5260a02f73b1613b729a34677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

Release files / hypotonic-0.0.15-py3-none-any.whl

Download URL hypotonic-0.0.15-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
027eb2d935f27756eb07778a44f727b893faf7e2f13aba18c50193dc5174e72c
BLAKE2b-256 checksum
How to use checksums
e26c668673bc9a26be55e62659b5552bb8f482af44a85e984a41fc57c9b9152d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

Security for hypotonic 0.0.15

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