🔌 An OpenCLI plugin — Scrape blog post listings from bohao.work.
- 📰 Fetch latest blog posts from bohao.work
- 🔢 Customizable result limit
- 📄 Multiple output formats (table/JSON)
- ⚡ Pure YAML implementation, zero dependencies
# Via OpenCLI plugin manager
opencli plugin install github:gnosis23/opencli-plugin-bohao-work
# Or manually
git clone https://github.com/gnosis23/opencli-plugin-bohao-work \
~/.opencli/plugins/bohao-work# Get post list (default: 10 posts)
opencli bohao-work posts
# Get specific number of posts
opencli bohao-work posts --limit 5
# Output as JSON
opencli bohao-work posts -f json| Parameter | Type | Default | Description |
|---|---|---|---|
--limit |
int | 10 | Number of posts to return |
-f, --format |
string | table | Output format: table / json |
Table format:
┌──────┬─────────────────────────────┬────────────┬──────────────────────────────────────┐
│ rank │ name │ date │ url │
├──────┼─────────────────────────────┼────────────┼──────────────────────────────────────┤
│ 1 │ Post Title 1 │ 2024-01-15 │ https://bohao.work/posts/xxx │
│ 2 │ Post Title 2 │ 2024-01-10 │ https://bohao.work/posts/yyy │
└──────┴─────────────────────────────┴────────────┴──────────────────────────────────────┘
JSON format:
[
{
"rank": 1,
"name": "Post Title 1",
"date": "2024-01-15",
"url": "https://bohao.work/posts/xxx"
}
]This is a pure YAML plugin — no dependencies, no build step.
opencli-plugin-bohao-work/
├── posts.yaml # YAML adapter (defines scraping logic)
└── README.md # This document
- Adapter Type: YAML Playwright Adapter
- Target Site: https://bohao.work
- Scraping Logic:
- Navigate to bohao.work
- Execute JavaScript to extract post information
- Limit results based on
limitparameter
Extracted fields:
rank- Ranking numbername- Post titledate- Publication dateurl- Post link
# Clone repository
git clone https://github.com/gnosis23/opencli-plugin-bohao-work.git
# Local testing
opencli dev posts.yaml posts --limit 5- OpenCLI Documentation
- bohao.work - Target blog site