Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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