Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html to markdown ,Generate data twice #428

Open
caoshl opened this issue Sep 26, 2024 · 0 comments
Open

html to markdown ,Generate data twice #428

caoshl opened this issue Sep 26, 2024 · 0 comments

Comments

@caoshl
Copy link

caoshl commented Sep 26, 2024

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant