Agent-Reach/agent_reach
Kada Liao 31f00b8d78
feat(channels): add V2EX support via public API (zero-config, tier=0)
* feat(channels): add V2EX support via public API

V2EX provides a public JSON API that requires no authentication.
This PR adds:
- agent_reach/channels/v2ex.py: V2EXChannel (tier=0, zero-config)
  - can_handle() matches v2ex.com URLs
  - check() verifies API reachability via urllib (no extra deps)
- Register V2EXChannel in channels/__init__.py
- SKILL.md: add V2EX section with curl examples for hot topics,
  node browsing, topic detail, replies, and user info
- tests/test_channels.py: URL matching + mocked ok/warn check tests

V2EX API endpoints used:
  GET /api/v2/topics/hot          — hot topics
  GET /api/topics/show.json       — node topics / topic detail
  GET /api/replies/show.json      — topic replies
  GET /api/members/show.json      — user info

* feat(channels): expand V2EX channel with data-fetching methods

Add get_hot_topics, get_node_topics, get_topic, get_user, and search
methods to V2EXChannel using stdlib urllib only (no new dependencies).
Update unit tests and SKILL.md with Python call examples.

* feat(v2ex): add data fetching methods to V2EXChannel
2026-03-12 14:29:07 +08:00
..
channels feat(channels): add V2EX support via public API (zero-config, tier=0) 2026-03-12 14:29:07 +08:00
guides Merge pull request #46 from Panniantong/migrate-bird-to-xreach 2026-02-27 15:21:25 +08:00
integrations feat: migrate Twitter backend from bird CLI to xreach CLI 2026-02-27 08:17:51 +01:00
scripts fix(groq): use Config class instead of hardcoded config.json (#136) 2026-03-10 14:21:34 +08:00
skill feat(channels): add V2EX support via public API (zero-config, tier=0) 2026-03-12 14:29:07 +08:00
__init__.py release: v1.3.0 (#70) 2026-03-04 18:18:18 +08:00
cli.py fix: switch wechat-article-for-ai to Panniantong fork (BS4 4.12 fix) (#150) 2026-03-11 17:34:20 +08:00
config.py fix: YouTube JS runtime check, Douyin health check, cli bare except, config permission race (#104) 2026-03-08 21:24:05 +08:00
cookie_extract.py fix: sync xfetch session.json when using --from-browser (closes #109) (#112) 2026-03-08 14:32:24 +08:00
core.py feat: migrate Twitter backend from bird CLI to xreach CLI 2026-02-27 08:17:51 +01:00
doctor.py fix: remove emoji from CLI output for Windows GBK compatibility 2026-03-07 05:46:38 +01:00