mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
22399cee1a
* feat(36kr): add 36氪 CLI adapter with 4 commands - news: latest articles via public RSS feed (no browser needed), includes title/summary/date/url - hot: trending articles via INTERCEPT strategy, supports --type renqi/zonghe/shoucang/catalog - search: keyword search via INTERCEPT + DOM scraping - article: fetch article detail (title/author/date/body) by ID or URL Also adds vitest adapter project entry for 36kr tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs(36kr): add adapter documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(36kr): use Shanghai hot-list dates and complete docs --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: jackwener <jakevingoo@gmail.com>
48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
# 36kr (36氪)
|
|
|
|
**Mode**: 🌐 Public / 🔐 Browser · **Domain**: `36kr.com`
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli 36kr hot` | 36氪热榜 — trending articles |
|
|
| `opencli 36kr news` | Latest tech/startup news from 36kr |
|
|
| `opencli 36kr search <query>` | Search 36kr articles |
|
|
| `opencli 36kr article <id-or-url>` | Read full article content |
|
|
|
|
## Usage Examples
|
|
|
|
```bash
|
|
# Trending articles
|
|
opencli 36kr hot --limit 10
|
|
|
|
# Hot by type
|
|
opencli 36kr hot --type renqi --limit 10
|
|
opencli 36kr hot --type zonghe --limit 10
|
|
|
|
# Latest news
|
|
opencli 36kr news --limit 20
|
|
|
|
# Search articles
|
|
opencli 36kr search "AI" --limit 10
|
|
opencli 36kr search "OpenAI" --limit 5
|
|
|
|
# Read full article (by ID or URL)
|
|
opencli 36kr article 3000000123456
|
|
opencli 36kr article https://36kr.com/p/3000000123456
|
|
|
|
# JSON output
|
|
opencli 36kr hot -f json
|
|
```
|
|
|
|
## Notes
|
|
|
|
- `news` uses the public RSS feed and works without Browser Bridge.
|
|
- `hot`, `search`, and `article` use Browser Bridge and are best run with Chrome open.
|
|
- `hot --type` accepts `catalog`, `renqi`, `zonghe`, and `shoucang`.
|
|
|
|
## Prerequisites
|
|
|
|
- No browser required — uses public API
|