juejin-article-trends

Original🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected

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.

6installs
Added on

NPX Install

npx skill4agent add wuchubuzai2018/expert-skills-hub juejin-article-trends

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

Juejin Popular Article Rankings

Function Overview

This skill is used to obtain technical article ranking data from the Juejin (juejin.cn) website, including:
  • Article category list (Front-end, Back-end, AI, Mobile Development, etc.)
  • Popular article rankings for each category
  • Detailed article information (title, author, view count, like count, etc.)

Workflow

1. Get Category List

When you need to know Juejin article categories:
bash
node scripts/juejin.js categories
Return Example:
json
[
  { "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. Get Popular Articles

When you need to get popular articles of a specific category:
bash
node scripts/juejin.js articles <category_id> [type] [limit]
Parameters:
  • category_id
    : Category ID (obtained from the category list)
  • type
    : Sorting type, optional
    hot
    (popular) or
    new
    (latest), default is
    hot
  • limit
    : Number of returned articles, default is 20
Return Example:
json
[
  {
    "title": "文章标题",
    "brief": "文章摘要...",
    "author": "作者名",
    "articleId": "123456789",
    "popularity": 100,
    "viewCount": 5000,
    "likeCount": 200,
    "collectCount": 150,
    "commentCount": 50,
    "url": "https://juejin.cn/post/123456789",
    "tags": ["JavaScript", "Vue"]
  }
]

Usage Examples

View All Categories

bash
node scripts/juejin.js categories

Get Top 10 Front-end Popular Articles

bash
node scripts/juejin.js articles 6809637769959178254 hot 10

Get Latest Back-end Articles

bash
node scripts/juejin.js articles 6809637769959178255 new 15

API Description

This script uses Juejin's public APIs:
  • Category List:
    https://api.juejin.cn/tag_api/v1/query_category_briefs
  • Article Ranking:
    https://api.juejin.cn/content_api/v1/content/article_rank?category_id={id}&type={type}

Module Export

The script also supports being imported as a module:
javascript
const { getCategories, getArticles } = require('./juejin.js');

// Get categories
const categories = await getCategories();

// Get articles
const articles = await getArticles('6809637769959178254', 'hot', 10);