--- id: readabilipy version: "0.3.0" license: MIT license_treatment: permissive maintenance: dormant --- # readabilipy — Python wrapper for Mozilla's Readability.js License: permissive · Maintenance: dormant · Downloads: 1.5M/mo ## What it is and what it does ReadabiliPy wraps Mozilla's Readability.js Node.js package and provides a pure-Python alternative for extracting article content from HTML. It parses web pages and returns structured data including the article title, byline, simplified HTML, and plain text paragraphs. The package offers two extraction modes: one using Readability.js (requires Node.js 14 or higher) and one using a built-in Python parser that requires no external dependencies beyond beautifulsoup4, html5lib, lxml, and regex. You can use it as a command-line tool to batch-process HTML files into JSON, or import it as a library in Python code. The library normalizes all text output using NFKC Unicode normalization and optionally adds SHA-256 content digests or hierarchical node indexes to the output structure. Use it for: - Extract article text from web pages for content analysis or archival without manual HTML parsing. - Build a scraper that converts HTML articles into structured JSON with title, author, and plain text paragraphs. - Process downloaded HTML files in batch via the command-line tool to generate article metadata and content. - Create a content pipeline that needs both structured HTML and plain text representations of articles. - Compare extraction quality between Readability.js and Python-only parser outputs on the same content. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extracts article content from HTML using either Mozilla's Readability.js or a pure-Python parser, returning structured data with title, byline, simplified HTML, and plain text representations. Yes, if you need reliable article extraction from HTML. The package is stable with low install friction and no known vulnerabilities. Dormant maintenance is typical for extraction tools that reach a stable state. Choose it for production use if you can accept either Node.js as a dependency or the pure-Python fallback; avoid it only if you need active feature development. ## Install pip install readabilipy uv add readabilipy poetry add readabilipy ## Installing readabilipy Before you install: Low install friction with a pure-Python fallback path. Dormant maintenance (last release 620 days ago, last commit 2024-12-02) but repository remains active. Supports Python 3.6 through 3.12. License in practice: MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice. Quickstart: pip install readabilipy from readabilipy import simple_json_from_html_string article = simple_json_from_html_string(html_string, use_readability=False) print(article['title'], article['plain_text']) To use Readability.js mode, Node.js version 14 or higher must be installed before installing readabilipy. Python-only mode requires no external dependencies beyond the package's runtime dependencies. Verify before relying: - Whether Readability.js integration remains compatible with current Node.js versions given dormant maintenance status. - Performance and accuracy differences between Readability.js and pure-Python extraction modes on modern web content. - Real-world extraction quality on contemporary HTML structures and article formats. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 1.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags extract article from html, readability parser python, web content extraction, html to plain text, article scraping library, mozilla readability wrapper, content extraction tool, web-scraping, content-extraction, html-parsing [View on SkillFed](https://skillfed.io/packages/readabilipy) · [View on PyPI](https://pypi.org/project/readabilipy/)