fix: 财联社改用公开 API,替代 JS 渲染搜索页

- Rewrite cls.py to use nodeapi/telegraphList public API
  (SHA1+MD5 signed, no API key required)
- Returns real-time financial news with parsed titles and timestamps
- Unique per-item URLs to avoid dedup collision
- Update engine name from 'cls' to '财联社' for CLI usability
- Update SKILL.md known limitations
This commit is contained in:
vex1023 committed 2026-05-20 12:38:10 +08:00
1 parent 9578080ec4
commit 4a42a00156
4 files changed
+143 -71

No files matched your search

+2 -1
View File
@@ -191,7 +191,8 @@ This registers `web-search` as a global command. Requires Python 3.8+.
### Known Limitations
- **WeChat** via Sogou has anti-scraping limits, may return empty
- **财联社 / 华尔街见闻** need JS rendering → returns search page URL, not parsed results
- **财联社** uses public API (telegraphList) — returns parsed real-time news
- **华尔街见闻** need JS rendering → returns search page URL, not parsed results
- **Baidu Qianfan** requires `BAIDU_API_KEY` env var
- **RSS feeds** need stable internet
- **Windows GBK** terminals: special chars auto-replaced by `_sanitize_for_console()`