article-to-md
A CLI tool to extract core content from webpages or local HTML and convert it to Markdown.
Usage: article-to-md [OPTIONS] SOURCE
Convert an article or web page to Markdown.
Commands:
--help, -h: Display this message and exit.
--version: Display application version.
Parameters:
SOURCE, --source: A URL or local HTML file to process. [required]
--method: The extraction engine to use. [choices: readability, trafilatura, raw] [default: readability]
--favor: Whether to favor 'precision' or 'recall' when using trafilatura. [choices: recall, precision]
--remove-ads, --no-remove-ads: Apply EasyList cosmetic filters to remove ads before processing. [default: False]
--strip-tag, --no-strip: HTML tag to strip from the final output. Repeat this flag to remove multiple tags. Use --no-strip to disable. [default: ('img',)]
Installation
uv is recommended to install the package in a managed environment:
uv tool install article-to-md
Note: To use the readability method, Node.js (v14+) must be installed on your system. Without Node.js, the tool uses Python-based extraction.
Usage
From a publicly accessible web page:
article-to-md https://example.com/article
From a local HTML file:
article-to-md /path/to/file.html
Advanced options:
--remove-ads- Basic ad removal from the DOM using generic cosmetic filters from EasyList--method- Affects pre-processing of the DOM before conversion to Markdown.readability(default) - Uses ReadabiliPy which can use the original Readability.js Node package when Node is present on the system.trafilatura- Uses the Trafilatura pure Python libraryraw- Sends the full DOM to be converted
--favor- Only used with--method trafilaturato control options documented here.--strip-tag- An HTML tag to be stripped from the DOM before conversion- This argument can be supplied multiple times
- By default,
<img>tags are stripped; use--no-stripto keep them.
Features
- Stealth Requests: Uses curl_cffi to impersonate a Chrome browser and avoid bot detection.
- Enhanced Markdown:
- Converts
<var>to italics. - Includes
<abbr>titles in the text output. - Renders Markdown tables from HTML tables
- Converts
Metadata
Release files for article-to-md 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| article_to_md-0.6.1.tar.gz | 6.1 kB | Without provenance | Details for article_to_md-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| article_to_md-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for article_to_md-0.6.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / article_to_md-0.6.1.tar.gz
| Download URL | article_to_md-0.6.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
373cb5979f54b904033778d7bab317c96f625bf472cda25bac30bbe1bd71b63a
|
|
BLAKE2b-256 checksum How to use checksums |
dc578af71e5a9a508c9b2586009ae79ce2efc20aedc0bdbbc3a0d4ace4814093
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / article_to_md-0.6.1-py3-none-any.whl
| Download URL | article_to_md-0.6.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1da350c61c016f79613beb39a9e50aea09e922f6fad82d3f302458ddbf98a27d
|
|
BLAKE2b-256 checksum How to use checksums |
c0a009465e505712daa85899618591092c33530b64351b0f2f70e30e336cf1ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for article-to-md 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.