Best way to convert HTML to plaintext using Python

后端 未结 2 673
悲哀的现实
悲哀的现实 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.

提交回复
热议问题