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.3.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.3-py3-none-any.whl (110.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for python_readability-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e397fc854107e9910e5cd50e1e23e0dc6d11ee4d9493d21ee379d208f0e5a693
MD5 549d3b7d2b18ec9a371a34855d1c8993
BLAKE2b-256 99a111a67bd4592eced5e1724495115a7509d7767be0ca6924130d5a7adb5cf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_readability-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3fdf801e2f81ffcbc001151cf8ae39656407953c8aab1aac1f69386ac18ad958
MD5 9fbe3747d14006817139ca216b8be973
BLAKE2b-256 2362112efd6db7ca43409c47eae3e9c42c2033ef395c135a357874dde1f1faef

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