Skip to main content

@mozilla/readability for Python

Project description

Readability.py

This is a Python wrapper for @mozilla/readability, a standalone version of the readability library used for Firefox Reader View.

Installation

pip install python-readability

Usage

from readability import parse

parse(html_string, **options)

See the original documentation and the type hints for details.

Requirements

Since this package is a wrapper for the original JavaScript library, it use a JavaScript engine to run the code.

For now, if you are running this package in a regular CPython environment, it will use pythonmonkey to interpret JavaScript, which requires Python 3.8+.

This package is also available inside pyodide because it can use the native JavaScript engine that pyodide runs on.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_readability-0.0.2.1.tar.gz (110.4 kB view details)

Uploaded Source

Built Distribution

python_readability-0.0.2.1-py3-none-any.whl (112.5 kB view details)

Uploaded Python 3

File details

Details for the file python_readability-0.0.2.1.tar.gz.

File metadata

File hashes

Hashes for python_readability-0.0.2.1.tar.gz
Algorithm Hash digest
SHA256 04b443068781ff020cf95280395864812900be92bcb84013308c3851b4c52342
MD5 9bd41397471ba54d93e49dc2a77d1eff
BLAKE2b-256 527046e70e18145dc1677a7ec6fe2afb623e920e2ba446c3774a1e6d00901f4d

See more details on using hashes here.

File details

Details for the file python_readability-0.0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_readability-0.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8d0a3fce2f1d715f286b12ee8016210cb3e0160bbe10a7f045de54e5551cd9a
MD5 83fb511a8ed86727b85ab797e1668fd1
BLAKE2b-256 f81c9b9c08c66356479e058c90b56dc15f6c8480656de82c5472a467a691dd37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page