hncat
所属分类:其他
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2022-07-08 05:56:36
上 传 者:
sh-1993
说明: 快速抓取所有黑客新闻商店+评论。,
(Grab all Hacker News stores + comments, quickly.,)
文件列表:
Cargo.lock (41945, 2022-07-07)
Cargo.toml (110, 2022-07-07)
hackernews-types/ (0, 2022-07-07)
hackernews-types/Cargo.toml (438, 2022-07-07)
hackernews-types/src/ (0, 2022-07-07)
hackernews-types/src/lib.rs (2058, 2022-07-07)
hncat/ (0, 2022-07-07)
hncat/Cargo.toml (713, 2022-07-07)
hncat/src/ (0, 2022-07-07)
hncat/src/filters.rs (2079, 2022-07-07)
hncat/src/main.rs (5155, 2022-07-07)
images/ (0, 2022-07-07)
# hncat
[![Crates.io](https://img.shields.io/crates/v/hncat.svg)](https://crates.io/crates/hncat)
[![Actions Status](https://github.com/orf/hncat/workflows/CI/badge.svg)](https://github.com/orf/hncat/actions)
Dump all comments, stories and polls from Hacker News fast.
![](./images/readme-example.gif)
Table of Contents
=================
* [Install :cd:](#install-cd)
* [Usage :saxophone:](#usage-saxophone)
# Install :cd:
* Homebrew: `brew install orf/brew/hncat`
* Cargo: `cargo install hncat`
# Usage :saxophone:
Running `hncat` will begin to stream all items from the API to stdout in JSON.
```bash
$ hncat --help
hncat 0.1.0
Grab Hacker News items from the API in parallel.
USAGE:
hncat [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--concurrency Make this many concurrent requests [default: 200]
--end-date Ignore all items created after this date. Supports relative durations like "1
hour" as well as absolute rfc3339 dates
--last Fetch the last X items
--limit Limit the number of outputted rows to this
--since Fetch all records since this time. Supports relative durations like "1 hour"
--start-date Ignore all items created before this date. Supports relative durations like "1
hour" as well as absolute rfc3339 dates
--start-id Fetch records with IDs higher than this
--stop-id Fetch records with IDs lower than this
```
近期下载者:
相关文件:
收藏者: