跳转到主要内容

PyNews是一个简单的Python CLI,用于浏览HN网站上的新闻

项目描述

一个用于浏览Hacker News(以及其他,在不久的将来)新闻的Python CLI。也是hn-cli的Python实现。

安装

通过pip

$ pip install pynews

您也可以克隆此项目并通过setup.py进行安装

$ git clone git@github.com:mazulo/pynews_cli.git
$ cd pynews_cli/
$ python setup.py install

用法示例

  • 获取头条新闻

$ pynews -t 10 # or
$ pynews --top-stories 10
# This will show the 10 first *top* stories from the list of 500.
  • 获取新新闻

$ pynews -n 10 # or
$ pynews --news-stories
# This will show the 10 first *new* stories from the list of 500.

查看操作效果

Usage

项目详细信息


下载文件

下载您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分布

PyNews-0.3.0.tar.gz (5.5 kB 查看哈希值)

上传时间 源代码

构建版本

PyNews-0.3.0-py3-none-any.whl (6.2 kB 查看哈希值)

上传时间 Python 3

支持者