Install
openclaw skills install juejin-article-trends获取掘金网站热门文章排行榜,支持查询文章分类列表和各分类的热门文章趋势。当用户需要了解掘金技术文章排行榜、获取前端/后端/AI等领域的热门文章时使用此技能。
openclaw skills install juejin-article-trends此技能用于获取掘金(juejin.cn)网站的技术文章排行榜数据,包括:
当用户需要了解掘金文章分类时:
node scripts/juejin.js categories
返回示例:
[
{ "id": "6809637769959178254", "name": "前端" },
{ "id": "6809637769959178255", "name": "后端" },
{ "id": "6809637769959178256", "name": "Android" },
{ "id": "6809637769959178257", "name": "iOS" },
{ "id": "6809637769959178258", "name": "人工智能" },
{ "id": "6809637769959178260", "name": "开发工具" },
{ "id": "6809637769959178261", "name": "代码人生" },
{ "id": "6809637769959178262", "name": "阅读" }
]
当用户需要获取特定分类的热门文章时:
node scripts/juejin.js articles <category_id> [type] [limit]
参数:
category_id: 分类ID(从分类列表获取)type: 排序类型,可选 hot(热门) 或 new(最新),默认 hotlimit: 返回文章数量,默认20返回示例:
[
{
"title": "文章标题",
"brief": "文章摘要...",
"author": "作者名",
"articleId": "123456789",
"popularity": 100,
"viewCount": 5000,
"likeCount": 200,
"collectCount": 150,
"commentCount": 50,
"url": "https://juejin.cn/post/123456789",
"tags": ["JavaScript", "Vue"]
}
]
node scripts/juejin.js categories
node scripts/juejin.js articles 6809637769959178254 hot 10
node scripts/juejin.js articles 6809637769959178255 new 15