{"repo":"Alir3z4/html2text","free":true,"listed":false,"github":"https://github.com/Alir3z4/html2text","clone":"git clone https://github.com/Alir3z4/html2text.git","description":"Convert HTML to Markdown-formatted text.","language":"Python","stars":2167,"topics":["markdown","markdown-parser","python"],"license":"GPL-3.0","category":"productivity","readme_excerpt":"html2text html2text is a Python script 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). Usage: html2text [filename [encoding]] Option Description -------------------------------------------------------- --------------------------------------------------- --version Show program's version number and exit -h , --help Show this help message and exit --ignore-links Don't include any formatting for links --escape-all Escape all special characters. Output is less readable, but avoids corner case formatting issues. --reference-links Use reference links instead of links to create markdown --mark-code Mark preformatted and code blocks with [code]...[/code] For a complete list of options see the docs Or you can use it from within Python : Or with some configuration options: Originally written by Aaron Swartz. This code is distributed under the GPLv3. How to install html2text is available on pypi https://pypi.org/project/html2text/ Development How to run unit tests To see the coverage results: then open the ./htmlcov/index.html file in your browser. Code Quality & Pre Commit The CI runs several linting steps, including: - mypy - Flake8 - Black To make sure the code passes the CI linting steps, run: Documentation Documentation lives here","default_branch":null,"files":null,"tree":[],"storefront":"/r/Alir3z4","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Alir3z4/html2text/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}