Introduction¶
When conducting web novel topic selection or competitive research, it is often necessary to repeatedly open the new book and reading rankings across various categories on Fanqie Novel, manually copying book titles, reading counts, and rank changes. Since the pages employ font obfuscation, scraping the HTML directly often results in garbled text. This article introduces the “Fanqie Novel Rank Analysis” Skill on SkillHub. It encapsulates ranking queries, field decoding, and export analysis into SKILL.md and scripts. This allows Agents to call the official ranking API with fixed parameters, rather than figuring out scraping methods from scratch every time.
What is this¶
“Fanqie Novel Rank Analysis” (package ID fanqie-novel-rank, current community version 1.0.1) is a data-analysis Agent Skill hosted on SkillHub. It targets the rankings on fanqienovel.com: it fetches data via Fanqie’s /api/rank/category/list, features built-in custom font decoding, and outputs fields such as rank, book title, author, word count, reading popularity, and rank changes for table comparison or export for statistical analysis.
The Skill is maintained by community publisher @indiv-zeyl. The description in the community index is: Scraping and analysis of Fanqie Novel rankings, supporting reading/new book charts, male/female channels, as well as 19 male and 18 female sub-categories. The visible rating on SkillHub is approximately 99646, with about 563 downloads (based on the community page display). Official entry: https://api.skillhub.cn/user_7079a474/fanqie-novel-rank
Core Features¶
The following capabilities are derived from the descriptions in the Skill package’s SKILL.md and references/api.md.
Ranking Queries¶
- Fetch Top N by gender, chart type, and category: Male/Female channel (
-c 1or2), Reading/New Book chart (-t 0or1), Category ID or Chinese name fuzzy match (-g). - Site-wide Overall Ranking: When
-g 0is used, it deduplicates results from multiple sub-categories and sorts them by aggregated popularity. - Keyword Filtering:
--filtermatches within the fetched results’ book titles, authors, and abstracts.
Data Fields¶
Fields returned by the script include: bookId, bookName, author, abstract, thumbUri, wordNumber, read_count (popularity), creationStatus (Completed/Ongoing), lastChapterTitle, lastChapterUpdateTime, currentPos, rankPosDiff (rank rise/fall).
Output & Runtime¶
- Output formats:
table(default),json,csv. Can write to file using-O. - Verbose mode
-v: Includes abstract preview, latest chapter, and update time. - Local cache defaults to 5-minute TTL;
--no-cacheforces real-time requests. - Provides two implementations: Python 3 (
scripts/fetch_rank.py) and Node.js 14+ (scripts/fetch_rank.js). Both share thescripts/shared/dit_data.jsonfont decoding table; dependencies are standard libraries only.
Analysis Scenarios (Post-Export)¶
The Skill documentation summarizes possible secondary analysis directions, such as: comparing average read_count across multiple categories, abstract keyword statistics, author frequency on charts, ratio of ongoing vs. completed works, word count tiers, update activity, climbing speed (rankPosDiff) on the New Book chart, and comparison between Reading and New Book charts in the same category. These rely on you importing CSV/JSON into Excel or your own scripts; the Skill itself does not have built-in charts.
Explicitly Unsupported Capabilities¶
The API only provides the current snapshot. It cannot query historical time series, chapter content, reader comments or ratings, or author profiles. --filter only filters the results already fetched in the current run; it is not a site-wide search.
Installation & Activation¶
Verified via skillhub search, the installation command is:
skillhub install fanqie-novel-rank --namespace indiv-zeyl
By default, it installs to ./skills in the current directory; to specify a directory, add --dir, for example:
skillhub install fanqie-novel-rank --namespace indiv-zeyl --dir ~/.cursor/skills
After installation, the Agent reads the parameter descriptions and example commands in the package’s SKILL.md. This article does not find differentiated installation steps for Cursor, Codex CLI, or Claude Code in the official materials; if you use other clients, generally follow “place the Skill directory in the skills root directory recognized by that client.” Refer to the SkillHub page instructions for specifics.
Typical Usage¶
The following commands are excerpted from the Quick Start within the Skill package; paths are relative to the Skill root directory.
View Top Chart for Specific Category:
python3 scripts/fetch_rank.py -c 1 -t 0 -g 1140 -l 10
node scripts/fetch_rank.js -c 2 -t 1 -g 248 -l 20
Meaning: The former is Male Channel Reading Chart - Eastern Xianxia (category 1140) Top 10; the latter is Female Channel New Book Chart - Fantasy Romance (category 248) Top 20. -g can also use Chinese fuzzy names, e.g., -g "都市".
Site-wide Overall Ranking & Book Search:
python3 scripts/fetch_rank.py -c 1 -t 0 -g 0 -l 30
python3 scripts/fetch_rank.py -c 1 -t 0 -g 0 --filter "系统" -l 30
Export & Refresh:
python3 scripts/fetch_rank.py -c 1 -t 0 -g 0 -l 50 -f csv -O 男频总榜.csv
node scripts/fetch_rank.js -c 2 -t 1 -g 0 -l 30 -f json -O 女频新书.json
python3 scripts/fetch_rank.py -c 1 -t 0 -g 1140 -l 10 --no-cache
In conversations, you can also directly use the trigger intents described by the Skill: for example, “Scrape Fanqie Male Channel New Book Chart,” “Compare reading popularity across categories,” “View Urban Repair Reading Chart Top 20.” The Agent should select the script and parameters according to SKILL.md.
Parameter Table (consistent with official documentation):
| Parameter | Value | Description |
|---|---|---|
-c |
1, 2 | Male / Female Channel |
-t |
0, 1 | Reading Chart / New Book Chart |
-g |
ID or Name | Category; 0 indicates full category aggregation |
-l |
Number | Number of entries, default 20 |
-f |
table, json, csv | Output format |
-v |
Flag | Output abstract and update info |
--filter |
String | Keyword filtering within results |
--no-cache |
Flag | Skip cache |
For complete category IDs, see references/categories.md in the package.
Use Cases & Notes¶
Who it is for: Web novel authors, editors, or operators who need to quickly scan charts, compare category popularity, and track new book climbs; data analysts who export rankings to CSV for pivot tables; people integrating “fetch rankings” into Agent workflows as repeatable commands.
Usage Notes:
- Data comes from Fanqie’s public ranking API. Please comply with site usage rules and control request frequency. The Skill description indicates that full-category mode sends concurrent sub-requests (up to 4 parallel) with random delays, but there is still a risk of rate limiting.
rank_versionneeds to be parsed from the ranking page status; the script caches it. Exceptions may return empty lists; you can retry later or use--no-cache.- For historical trends, you need to schedule your own scraping and database storage; the Skill only provides the current snapshot.
- The community installation namespace is
indiv-zeyl; if the official page URL differs from the CLI namespace, refer to the current output ofskillhub search fanqie-novel-rank.
Conclusion¶
“Fanqie Novel Rank Analysis” encapsulates the Fanqie ranking API, font decoding, and export parameters into an Agent Skill. It reduces manual chart transcription and garbled text issues, clearly documents analysis fields, and facilitates further calculations in tables or scripts. For installation and details, see SkillHub: https://api.skillhub.cn/user_7079a474/fanqie-novel-rank