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

Uploaded Source

Built Distribution

python_readability-0.1.0-py3-none-any.whl (110.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for python_readability-0.1.0.tar.gz
Algorithm Hash digest
SHA256 607ecf82f19991e528315c350f927c69893cd89bda59a762263e665173ec8476
MD5 bbfe0119523697e1c0bb5a656d2500ea
BLAKE2b-256 a14ed302bc6fa2dd72700759b12bf1b219215c0f200e189084bcf6ac5dc21bab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_readability-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4a164579f0e6da51b5cc38d94821c7d57005411421bb85ee411d37c4e0d289
MD5 7f3e684a2ce82bbecf42eb8ea6841014
BLAKE2b-256 a7cd5a77938cfc4d2fadf5ae6e957e7feda13f918e63b5133f2c28e5abd706fc

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