Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monokh/watchhn
https://github.com/monokh/watchhn
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/monokh/watchhn
- Owner: monokh
- Created: 2020-07-12T23:15:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-19T15:07:45.000Z (over 4 years ago)
- Last Synced: 2024-10-14T03:11:20.989Z (3 months ago)
- Language: Rust
- Size: 54.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Watch HN
[![WatchHN Crates](https://img.shields.io/crates/v/watchhn)](https://crates.io/crates/watchhn)
CLI tool (Rust) to watch hackernews for new comments and keywords
Supports output to console and notification to slack.
![screenshot](https://github.com/monokh/watchhn/raw/master/screenshot.png)
## Run
`cargo install watchhn`
or
[Download](https://github.com/monokh/watchhn/releases) (mac & windows)
### Watch a post for new comments
`watchhn post https://news.ycombinator.com/item?id=23796580 --slack-webhook `### Watch hackernews for posts with keywords
`keywords rust bitcoin GPT-3 --new --slack-webhook `## Options
### Global
`-i, --interval ` Time in seconds to wait between each check [default: 10]
`-s, --slack-webhook ` Slack webhook url to send notifications
### Post `watchhn post`
Watches a post for new comments. First indexes the post to save current comments, then watches for new comments anywhere in the hierarchy.
` Link to the HN post to watch`
Example: `watchhn post https://news.ycombinator.com/item?id=23796580`
### Keywords `watchhn keywords`
Watches top, new or both HN index page for posts containing any of a given set of keywords
`-n, --new` Include new stories
`-t, --top` Include top stories
`-l, --limit ` Limit the number of posts to check for each kind (new and top) [default: 40]