Extract clean article content from any URL and convert it to readable Markdown.
bash
web2md https://example.com/article
web2md https://example.com/article -o article.md
web2md https://example.com/article --summary
bash
pip install web2md
bash
web2md <url> -o ~/Documents/reading/<slug>.md
bash
web2md <url> --summary --ai -o article.md
bash
web2md urls.txt --batch -d output/
web2md uses readability-lxml to extract the main article content (stripping ads, nav, sidebars) and markdownify to convert the HTML to clean Markdown. It preserves headings, links, lists, and text formatting while removing clutter.
For batch mode, image download, and AI features: https://web2md.dev (paid CLI, $19)