Best way to convert HTML to plaintext using Python

后端 未结 2 877
无人及你
无人及你 2021-02-15 01:48

I\'m working on a project that involves converting a large amount of HTML content to plain/text. I have a custom-written module that does the job OK, but I\'m wondering if there

相关标签:
2条回答
  • 2021-02-15 02:18

    Here's a python library which does HTML parsing:

    • lxml.html

    BeautifulSoup is another option.

    0 讨论(0)
  • 2021-02-15 02:26

    Html2Text seems to be a good option

    0 讨论(0)
提交回复
热议问题