Best way to convert HTML to plaintext using Python

后端 未结 2 666
悲哀的现实
悲哀的现实 2021-02-15 02:03

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:15

    Here's a python library which does HTML parsing:

    • lxml.html

    BeautifulSoup is another option.

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

    Html2Text seems to be a good option

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