diff --git a/README.md b/README.md new file mode 100644 index 0000000..640f148 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# ifeng-cli + +Command line for iFeng News (凤凰新闻, ifeng.com). + +## Install + +``` +go install github.com/tamnd/ifeng-cli/cmd/ifeng@latest +``` + +## Commands + +``` +ifeng hot hourly trending articles, ordered by view count +ifeng today today's hot articles +ifeng version print version +``` + +## Flags + +``` +-o, --output string table|json|jsonl|csv|tsv|url|raw (default "auto") +-n, --limit int limit number of records +-q, --quiet suppress progress on stderr + --no-header omit header row in table/csv/tsv + --fields strings comma-separated columns to include + --template string Go text/template applied per record + --delay duration minimum spacing between requests + --timeout duration per-request timeout + --retries int retry attempts on 5xx +``` + +## License + +MIT