1. 首页
  2. 数据库
  3. 其它
  4. Google News:使用Beautiful soup网页抓取功能在Python中构建的Simple News应用 源码

Google News:使用Beautiful soup网页抓取功能在Python中构建的Simple News应用 源码

上传者: 2021-04-07 14:23:59上传 ZIP文件 2.45KB 热度 7次
谷歌新闻 使用Beautiful-soup网页抓取功能在Python中构建的Simple News应用程序。 如何使用? 下载GoogleNews.py文件并添加到您的项目中。 如何获得用户代理? 在我的用户代理中搜索您的Chrome。 例子 from GoogleNews import GoogleNews news = GoogleNews ( "your user agent" ) 方法 getTopStories() 返回Google新闻的头条新闻。 news . getTopStories () getForYou() 根据您的兴趣返回推荐的标题。 news . getForYou () getCoronaNews() 返回电晕新闻的头条新闻。 news . getCoronaNews () getCountryNews() 返回您所在国家的头条新闻。 ne
下载地址
用户评论