Best way to convert HTML to plaintext using Python

后端 未结 2 876
无人及你
无人及你 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.

提交回复
热议问题