hn-在命令行中阅读 HN
hn-在命令行中阅读 HN
Python 命令行工具
访问GitHub主页
共15Star
详细介绍
hn
read HN from the command line
Features
- Modular, "daemon" + ctl
- Daemon can watch for regexes in stories and trigger notifications (currently broken on OSX) or do any other type of work
Install
$ make install
Usage
- Start the daemon
- Use the command line interface
# Start the daemon
$ hnd
# OR start the daemon with a config file (see example config file)
$ hnd --config hn/hn.conf
# Use the command line interface
$ hnctl
ctl >
ctl > top # show top stories
ctl > new # show new stories
ctl > ask # show ask stories
ctl > jobs # show jobs stories
ctl > show # show "show hn" stories
ctl > ping # ping HN site
ctl > open 1 # open story <1> in browser
ctl > user pg # show user <pg>
ctl > help # show help
ctl > help user # show help for command <user>
ctl > quit # quit
# You can also invoke a command directly w/o the loop
$ hnctl top
$ hnctl open 1
MIT Licensed
推荐源码
暂无源码 更多源码...