9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
46 lines
1.4 KiB
Markdown
46 lines
1.4 KiB
Markdown
# Wikipedia
|
|
|
|
**Mode**: 🌐 Public · **Domain**: `wikipedia.org`
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli wikipedia search` | Search Wikipedia articles |
|
|
| `opencli wikipedia summary` | Get Wikipedia article summary |
|
|
| `opencli wikipedia random` | Random Wikipedia article |
|
|
| `opencli wikipedia trending` | Trending Wikipedia articles |
|
|
| `opencli wikipedia page <title>` | Full plain-text article extract (optional paragraph cap) |
|
|
|
|
## Usage Examples
|
|
|
|
```bash
|
|
# Search articles
|
|
opencli wikipedia search "quantum computing" --limit 10
|
|
|
|
# Get article summary
|
|
opencli wikipedia summary "Artificial intelligence"
|
|
|
|
# Get the full article body (plain text, no silent truncation)
|
|
opencli wikipedia page "Transformer (deep learning architecture)"
|
|
|
|
# Cap to first 3 paragraphs explicitly
|
|
opencli wikipedia page "Photosynthesis" --paragraphs 3
|
|
|
|
# Use with other languages
|
|
opencli wikipedia search "人工智能" --lang zh
|
|
opencli wikipedia page "人工智能" --lang zh --paragraphs 5
|
|
|
|
# JSON output
|
|
opencli wikipedia search "Rust" -f json
|
|
```
|
|
|
|
## Notes
|
|
|
|
- `summary` returns the lead-section blurb truncated to 300 chars (legacy convention)
|
|
- `page` returns the **complete** plain-text article body. Pass `--paragraphs N` to opt into a cap; default `0` means full article — no silent truncation
|
|
|
|
## Prerequisites
|
|
|
|
- No browser required — uses public Wikipedia API
|