html2markdown.py2

Python module for converting HTML to Markdown text

Install

All systems
curl cmd.cat/html2markdown.py2.sh
Debian Debian
apt-get install python-html2text
Ubuntu
apt-get install python-html2text
Arch Arch Linux
pacman -S python-html2text
image/svg+xml Kali Linux
apt-get install python-html2text
Windows (WSL2)
sudo apt-get update sudo apt-get install python-html2text
Raspbian
apt-get install python-html2text

python-html2text

Python module for converting HTML to Markdown text

html2text is a Python module that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format). This package contains the Python 2 version of the library, and a script, html2markdown.