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.3.tar.gz (108.3 kB view details)

Uploaded Source

Built Distribution

python_readability-0.0.3-py3-none-any.whl (110.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for python_readability-0.0.3.tar.gz
Algorithm Hash digest
SHA256 efb6db8e30c475463080070e53c7026bb0ebedd5f1fbd31e6ac9a5d3719d5c09
MD5 543683e4732f7be982345c042c1a8f83
BLAKE2b-256 69bb9dd8ad3a2a643e7f8a97a258e9b84568464d51642c94f3f0913a437cb4df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_readability-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b844329ea5b29afe3e22019fe15f6573161f8899b2ffd1f6bf683b8e3416400
MD5 d0f1cbbba9418c9ceb07d3ba2154c492
BLAKE2b-256 5c581b6b6911fd1adbd61cb510f5ebfb233ee6eff9d318269b22ee10f9580c1b

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