← Back to Skills Marketplace
Clw Cnyes Stock
by
gentoobreaking
· GitHub ↗
· v1.0.0
· MIT-0
33
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clw-cnyes-stock
Description
鉅亨網台股新聞自動抓取,支援增量比對與 Telegram 通知。
README (SKILL.md)
cnyes-stock-scraper — 鉅亨網台股新聞抓取
核心功能
- 自動抓取鉅亨網台股新聞(分類頁面 + Trending 頭條)
- 增量比對,僅推送新增新聞
- Telegram 通知(自動分段,避免超過 4096 字元)
- Trending 台股區塊智能識別(關鍵字密度評分)
- 歷史檔併發保護(
fcntl.flock+ atomic write)
使用方式
# 抓取今日新聞並存檔
python3 -m cnyes_stock_scraper
# 抓取 + 發 Telegram 通知
TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=xxx python3 -m cnyes_stock_scraper --telegram
# 指定日期
python3 -m cnyes_stock_scraper --date 2026-05-12
# 抓取 Trending 台股頭條
python3 -m cnyes_stock_scraper --trending
# 使用系統 Chrome
python3 -m cnyes_stock_scraper --system-chrome
環境變數
| 變數 | 用途 | 預設值 |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Telegram Bot Token(--telegram 時需要) |
無 |
TELEGRAM_CHAT_ID |
Telegram Chat ID(--telegram 時需要) |
無 |
IDEAS2TASKS_TASKS_DIR |
覆蓋預設的 tasks 目錄路徑 | 無 |
排程
# 每日 08:30 抓取台股新聞並發送 Telegram
30 8 * * 1-5 PYTHONPATH=$SKILL_DIR TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=xxx python3 -m cnyes_stock_scraper --telegram
技術細節
- 抓取引擎: Playwright + Chromium(支援 --system-chrome 使用系統 Chrome)
- 通知通道: Telegram Bot API(環境變數)
- 歷史檔:
~/.qclaw/cnyes_stock_history.json - 增量比對: 以 URL 去重,避免重複通知
Usage Guidance
Because artifact reading failed, treat this as an incomplete low-confidence review and re-run scanning in an environment where metadata.json and artifact/ can be inspected.
Capability Assessment
Purpose & Capability
Artifact inspection was blocked by the local sandbox before any files could be read; no purpose or capability mismatch is evidenced.
Instruction Scope
No SKILL.md or instruction artifacts were accessible, so no unsupported instruction-scope concern can be established.
Install Mechanism
No install specification was accessible for review; no artifact-backed install risk is evidenced.
Credentials
No file contents or capability declarations were accessible, so proportionality could not be confirmed from artifacts.
Persistence & Privilege
No artifact evidence showed persistence, credentials, privilege use, or background behavior.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clw-cnyes-stock - After installation, invoke the skill by name or use
/clw-cnyes-stock - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of cnyes-stock-scraper:
- 自動抓取鉅亨網台股新聞(分類頁與 Trending 頭條)。
- 支援只推送新增新聞,避免重複通知。
- 整合 Telegram 通知,訊息自動分段防止字數超過限制。
- 支援以關鍵字密度識別 Trending 台股頭條。
- 歷史檔案採用鎖定與原子寫入,防止併發問題。
- 提供 CLI 與多種參數,方便抓取、推送與排程。
Metadata
Frequently Asked Questions
What is Clw Cnyes Stock?
鉅亨網台股新聞自動抓取,支援增量比對與 Telegram 通知。 It is an AI Agent Skill for Claude Code / OpenClaw, with 33 downloads so far.
How do I install Clw Cnyes Stock?
Run "/install clw-cnyes-stock" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Clw Cnyes Stock free?
Yes, Clw Cnyes Stock is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Clw Cnyes Stock support?
Clw Cnyes Stock is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Clw Cnyes Stock?
It is built and maintained by gentoobreaking (@openclawchen8-lgtm); the current version is v1.0.0.
More Skills