juejin-article-trends
10
总安装量
2
周安装量
#29472
全站排名
安装命令
npx skills add https://github.com/wuchubuzai2018/expert-skills-hub --skill juejin-article-trends
Agent 安装分布
opencode
2
gemini-cli
2
github-copilot
2
mcpjam
1
iflow-cli
1
Skill 文档
æéçé¨æç« æè¡æ¦
åè½æ¦è¿°
æ¤æè½ç¨äºè·åæé(juejin.cn)ç½ç«çææ¯æç« æè¡æ¦æ°æ®ï¼å æ¬ï¼
- æç« åç±»å表ï¼å端ãå端ãAIãç§»å¨å¼åçï¼
- ååç±»ççé¨æç« æè¡æ¦
- æç« 详ç»ä¿¡æ¯ï¼æ é¢ãä½è ãé 读éãç¹èµæ°çï¼
工使µç¨
1. è·ååç±»å表
å½ç¨æ·éè¦äºè§£æéæç« åç±»æ¶ï¼
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": "é
读" }
]
2. è·åç鍿ç«
å½ç¨æ·éè¦è·åç¹å®åç±»ççé¨æç« æ¶ï¼
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
è·åå端çé¨æç« ï¼å10ç¯ï¼
node scripts/juejin.js articles 6809637769959178254 hot 10
è·ååç«¯ææ°æç«
node scripts/juejin.js articles 6809637769959178255 new 15
API说æ
æ¤èæ¬ä½¿ç¨æéå ¬å¼APIï¼
- åç±»å表:
https://api.juejin.cn/tag_api/v1/query_category_briefs - æç« æè¡:
https://api.juejin.cn/content_api/v1/content/article_rank?category_id={id}&type={type}
模å导åº
èæ¬ä¹æ¯æä½ä¸ºæ¨¡åå¯¼å ¥ä½¿ç¨ï¼
const { getCategories, getArticles } = require('./juejin.js');
// è·ååç±»
const categories = await getCategories();
// è·åæç«
const articles = await getArticles('6809637769959178254', 'hot', 10);