Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

今日头条热榜 | Toutiao Hot News

获取今日头条(www.toutiao.com)新闻热榜/热搜榜数据 | Get Toutiao (www.toutiao.com) news hot list/trending data 包含时政要闻、财经、社会事件、国际新闻、科技发展及娱乐八卦等多领域的热门中文资讯 | Includes politics, f...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 36 · 0 current installs · 0 all-time installs
bynoah@noah-1106
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
!
Purpose & Capability
The skill's name/description match the included code: Node.js fetcher + Python tooling to store/query/generate HTML from a local SQLite DB. However the registry metadata claims no required binaries or env vars, yet the code clearly requires node (runs scripts/toutiao.js) and python3. That mismatch is disproportionate and misleading.
!
Instruction Scope
SKILL.md instructs running local node/python scripts which align with the purpose. But one script (scripts/fetch-toutiao.py) is written to call a Node script from a hard-coded OpenClaw workspace path (~/.openclaw/workspace-tanluzhe/skills/toutiao-news-trends-0) instead of the local relative path used by the other scripts; that is unexpected and may cause accidental access to user workspace files if that path exists.
!
Install Mechanism
No install spec is provided (instruction-only), but the bundle includes executable code that will run (Node.js + Python). The package does not declare these runtime requirements in the registry metadata. This omission increases the risk of runtime failures or surprises when the agent attempts to execute code that depends on missing binaries.
Credentials
The skill does not request credentials or environment variables and the code does not read secrets. It does read/write a local data/ directory (SQLite DB and HTML). The only notable environment access is the hard-coded use of Path.home() in fetch-toutiao.py which references a specific user workspace path — this is not a credential but does access a user-specific filesystem location unexpectedly.
Persistence & Privilege
The skill does not request persistent platform privileges (always: false) and does not modify other skills or system-wide agent configuration. It writes only to its own data/ directory (creates a local SQLite DB and HTML report) which is consistent with its stated purpose.
What to consider before installing
This package mostly does what it says (scrapes Toutiao and stores results locally), but there are a few red flags to check before installing or running it: 1) The registry metadata declares no required binaries but the code requires Node.js and Python3 — ensure you have those and ask the author to declare them. 2) Inspect and (if needed) edit scripts/fetch-toutiao.py: it contains a hard-coded path to ~/.openclaw/workspace-tanluzhe/skills/toutiao-news-trends-0 which could cause the script to read/execute code from your home workspace unexpectedly; change it to use the local script (or remove that script if unused). 3) The code makes outbound HTTPS requests to https://www.toutiao.com — run it in an environment where that network access is acceptable. 4) Review file writes (data/toutiao.db and data/index.html) and back up or sandbox if you don’t want local files created. If the author provides an updated version that declares runtime requirements and removes the hard-coded workspace path, the package would be coherent; until then treat it with caution or run it in an isolated environment.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97659pkd77rz8xjxnrkb0tz0s82zpex

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

今日头条新闻热榜 | Toutiao News Hot List

技能概述 | Skill Overview

此技能用于抓取今日头条 PC 端热榜(hot-board)数据,包括: This skill fetches Toutiao PC hot-board data, including:

  • 热点标题 / Hot topic titles
  • 热度值(HotValue)/ Heat values
  • 详情跳转链接(去除冗余查询参数,便于分享)/ Detail links (cleaned for sharing)
  • 封面图(如有)/ Cover images (if available)
  • 标签(如"热门事件"等)/ Labels (e.g., "hot event")

数据来源:今日头条 (www.toutiao.com) Data source: Toutiao (www.toutiao.com)


获取热榜 | Get Hot List

获取热榜(默认 50 条,按榜单顺序返回): Get hot list (default 50 items, in list order):

node scripts/toutiao.js hot

获取热榜前 N 条: Get top N items:

node scripts/toutiao.js hot 10

返回数据字段说明 | Return Data Fields

字段 / Field类型 / Type说明 / Description
ranknumber榜单排名(从 1 开始)
titlestring热点标题
popularitynumber热度值(HotValue,已转为数字;解析失败时为 0)
linkstring热点详情链接(已清理 query/hash)
coverstring | null封面图 URL(如有)
labelstring | null标签/标识(如有)
clusterIdstring聚合 ID(字符串化)
categoriesstring[]兴趣分类(如有)

注意事项 | Notes

  • 该接口为网页端公开接口,返回结构可能变动;若字段缺失可适当容错 This interface is a public web interface; structure may change; handle missing fields gracefully
  • 访问频繁可能触发风控,脚本内置随机 User-Agent 与超时控制 Frequent access may trigger rate limiting; script includes random User-Agent and timeout control

数据采集与持久化 | Data Collection & Persistence

新增数据库存储和可视化功能,用于调研数据收集。 New database storage and visualization features for research data collection.

快速开始 | Quick Start

# 1. 初始化数据库(首次使用)/ Initialize database (first time)
cd scripts
python3 init_db.py

# 2. 采集数据并保存到数据库 / Collect data and save to database
python3 save_to_db.py 50

# 3. 查询数据 / Query data
python3 query.py today

# 4. 生成 HTML 报告 / Generate HTML report
python3 generate_html.py
open ../data/index.html

新增脚本说明 | New Scripts

脚本 / Script功能 / Function
init_db.py初始化 SQLite 数据库 / Initialize SQLite database
save_to_db.py采集热榜并保存到数据库 / Collect hot list and save to DB
query.py查询数据库内容 / Query database content
generate_html.py生成可视化 HTML 报告 / Generate visual HTML report

使用示例 | Usage Examples

# 采集50条热榜 / Collect 50 hot items
cd scripts
python3 save_to_db.py 50

# 查看今天的热榜 / View today's hot items
python3 query.py today

# 查看统计 / View statistics
python3 query.py stats 7

数据存储位置 | Data Storage Location

data/
├── toutiao.db        # SQLite 数据库 / Database
└── index.html        # HTML 报告(生成后)/ HTML report (generated)

致谢

感谢原作者@爱海贼的无处不在 的原版技能toutiao-news-trends开源,本技能基于原版技能进行强化和更新制作而成。

Files

9 total
Select a file
Select a file to preview.

Comments

Loading comments…