Advertisement

尝试使用readability-lxml提取网页标题和主体内容(Python版本)

阅读量:
python-readability

Extracted from an HTML document, the tool extracts and cleans the main body text.
The project represents a Python port derived from a Ruby port, which itself originates from arc90's Readability Project.

python-readability可以获取一个HTML文献的主体内容:

GitHub上的项目:https://github.com/buriy/python-readability;PyPI上的项目:https://pypi.org/project/readability-lxml/

Installation
复制代码
    :pip3 install readability-lxml
    Collecting readability-lxml
      Downloading https://files.pythonhosted.org/packages/af/a7/8ea52b2d3de4a95c3ed8255077618435546386e35af8969744c0f

全部评论 (0)

还没有任何评论哟~