newspaper Python3新闻、全文和文章元数据提取库

newspaper简介

newspaper,一个可以用于新闻、全文和文章元数据提取库的Python3库。

newspaper应用实例

>>> from newspaper import Article
>>> url = 'http://www.example.example/news/'

>>> a = Article(url, language='zh') 

>>> a.download()
>>> a.parse()

>>> print(a.text[:150])

newspaper Github统计数据

MIT, Apache-2.0 licenses found

Github 13.3k stars

newspaper安装命令

pip install newspaper3k

newspaper Python版本要求

Newspaper is a Python3 library!

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.