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.2.tar.gz (108.3 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-0.1.2-py3-none-any.whl (110.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_readability-0.1.2.tar.gz
  • Upload date:
  • Size: 108.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.7

File hashes

Hashes for python_readability-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bba914e7538d134b8477ada9497aa1c5ba444a21eac06866873d675fe3a4a3af
MD5 be98c62f7e362b78f1376077b7b66c1c
BLAKE2b-256 975ae1b05a30713bb75e99ee44780ba1ebfc1e5a82ffc292d40a6024632cc590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_readability-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bcafd9b00dcf8c93f2073eab86000a7b24d16495158066bfc7d733b0af4ec98
MD5 e6a1490ea06707a912d0e6ec549fa3b0
BLAKE2b-256 22b99da0f86c5c91d842cb9a39d0e8e8c6a4a7d8bc2d08bb4f1b05f6361b1e46

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