Loading...
Loading...
Get the popular article rankings of Juejin website, support querying article category lists and popular article trends of each category. Use this skill when you need to understand Juejin technical article rankings and obtain popular articles in fields such as front-end/back-end/AI.
npx skill4agent add wuchubuzai2018/expert-skills-hub juejin-article-trendsnode 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_idtypehotnewhotlimit[
{
"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 categoriesnode scripts/juejin.js articles 6809637769959178254 hot 10node scripts/juejin.js articles 6809637769959178255 new 15https://api.juejin.cn/tag_api/v1/query_category_briefshttps://api.juejin.cn/content_api/v1/content/article_rank?category_id={id}&type={type}const { getCategories, getArticles } = require('./juejin.js');
// Get categories
const categories = await getCategories();
// Get articles
const articles = await getArticles('6809637769959178254', 'hot', 10);