Alir3z4 / Alir3z4/html2text

html to markdown ,Generate data twice

Open
#428 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description


- Version by `html2text --version`
- Test script
- Python version `python --version

get html from
`https://www.stats.gov.cn/sj/zxfb/202409/t20240914_1956486.html`
in the download html file ,only one data
but in the mardkown text ,data twice

script :
def convert_html_to_markdown(html_text,base_url:str):
h = HTML2Text(baseurl=base_url)
h.ignore_links = False
markdown_text = h.handle(html_text)
return markdown_text

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.