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-1.0.0rc0.tar.gz (109.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_readability-1.0.0rc0-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file python_readability-1.0.0rc0.tar.gz.

File metadata

File hashes

Hashes for python_readability-1.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 8fd998d49925bff063886035b3a76d919ac217cff25652e5ef284b6d667afb4c
MD5 3e4f14c77315a67a1b951ab18341cab9
BLAKE2b-256 2f7ab9f87ae6148c9b2759589deaf50325fd449eb48c39deb5b8298ac3410f9c

See more details on using hashes here.

File details

Details for the file python_readability-1.0.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_readability-1.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 02a7da6b32b7a1b112585c3e22c2feabeace87db99c17a9cff327d0f0f32225c
MD5 5a156ae9f93058a51c4319613f5c922d
BLAKE2b-256 e53b0b5401057a28abf002da65a95c0db7a22c98a85e7dc01ddc1b6b2d5204eb

See more details on using hashes here.

Supported by

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