{"id":44541536,"url":"https://github.com/deedy5/html2text_rs","last_synced_at":"2026-02-13T19:00:13.954Z","repository":{"id":250642019,"uuid":"834884150","full_name":"deedy5/html2text_rs","owner":"deedy5","description":"Python library for converting HTML to markup or plain text","archived":false,"fork":false,"pushed_at":"2025-08-30T16:42:27.000Z","size":53,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T18:23:44.018Z","etag":null,"topics":["html-to-markdown","html-to-text","html2markdown","html2md","html2text","markdown","python"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deedy5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-28T16:47:52.000Z","updated_at":"2025-08-30T16:36:03.000Z","dependencies_parsed_at":"2024-07-29T04:26:50.763Z","dependency_job_id":"eb62c6bb-7f5c-4e6f-b132-8f86d176ad20","html_url":"https://github.com/deedy5/html2text_rs","commit_stats":null,"previous_names":["deedy5/html2text_rs"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/deedy5/html2text_rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy5%2Fhtml2text_rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy5%2Fhtml2text_rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy5%2Fhtml2text_rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy5%2Fhtml2text_rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deedy5","download_url":"https://codeload.github.com/deedy5/html2text_rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deedy5%2Fhtml2text_rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-to-markdown","html-to-text","html2markdown","html2md","html2text","markdown","python"],"created_at":"2026-02-13T19:00:13.605Z","updated_at":"2026-02-13T19:00:13.849Z","avatar_url":"https://github.com/deedy5.png","language":"Rust","readme":"![Python \u003e= 3.8](https://img.shields.io/badge/python-\u003e=3.8-red.svg) [![](https://badgen.net/github/release/deedy5/html2text_rs)](https://github.com/deedy5/html2text_rs/releases) [![](https://badge.fury.io/py/html2text_rs.svg)](https://pypi.org/project/html2text_rs) [![Downloads](https://static.pepy.tech/badge/html2text_rs/week)](https://pepy.tech/project/html2text_rs) [![CI](https://github.com/deedy5/html2text_rs/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/deedy5/html2text_rs/actions/workflows/CI.yml)\n\n# html2text_rs\nConvert HTML to markdown or plain text.\u003c/br\u003e\nPython binding to the rust [rust-html2text](https://github.com/jugglerchris/rust-html2text) library.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [text_markdown()](#1-text_markdown)\n  - [text_plain()](#2-text_plain)\n  - [text_rich()](#3-text_rich)\n\n## Installation\n\n```python\npip install -U html2text_rs\n```\n\n## Usage\n### 1. text_markdown()\n```python\ndef text_markdown(html: str, width: int = 100):\n    \"\"\"Convert HTML to markdown text.\n\n    Args:\n        html (str): input html text.\n        width (int): wrap text to width columns. Default is 100.\n\n    \"\"\"\n```\nexample:\n```python\nimport html2text_rs\nimport requests\n\nresp = requests.get(\"https://en.wikipedia.org/wiki/AGM-88_HARM\")\n\ntext_markdown = html2text_rs.text_markdown(resp.text)\nprint(text_markdown)\n```\n### 2. text_plain()\n```python\ndef text_plain(html: str, width: int = 100):\n    \"\"\"Convert HTML to plain text.\n\n    Args:\n        html (str): input html text.\n        width (int): wrap text to width columns. Default is 100.\n\n    \"\"\"\n```\nexample:\n```python\nimport html2text_rs\nimport requests\n\nresp = requests.get(\"https://en.wikipedia.org/wiki/AGM-88_HARM\")\n\ntext_plain = html2text_rs.text_plain(resp.text)\nprint(text_plain)\n```\n### 3. text_rich()\n```python\ndef text_rich(html: str, width: int = 100):\n    \"\"\"Convert HTML to rich text.\n\n    Args:\n        html (str): input html text.\n        width (int): wrap text to width columns. Default is 100.\n\n    \"\"\"\n```\nexample:\n```python\nimport html2text_rs\nimport requests\n\nresp = requests.get(\"https://en.wikipedia.org/wiki/AGM-88_HARM\")\n\ntext_rich = html2text_rs.text_rich(resp.text)\nprint(text_rich)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedy5%2Fhtml2text_rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeedy5%2Fhtml2text_rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedy5%2Fhtml2text_rs/lists"}