Douyin Competitor Analyzer: Topic Selection and Competitive Analysis Using Public Data via Agent Skills

Introduction

When managing Douyin content operations or conducting brand research, common practices include manually scrolling through hot lists, opening benchmark accounts one by one, and copying engagement data into spreadsheets. While the videos, author works, comments, and hot lists visible on public pages can be structured and extracted, building your own crawler to handle interfaces, rate limiting, and compliance boundaries comes with significant costs. Below is an introduction to the SkillHub community Skill “Douyin Competitor Analyzer” (located at @user_fb71c45d/douyin-jingpinzhixiqi, v1.0.0). It encapsulates keyword search, account works, video comments, and real-time hot lists into Node.js command-line scripts, allowing Agents like Cursor to invoke them based on specific scenarios during conversations.

What is this

“Douyin Competitor Analyzer” is a Skill for acquiring and analyzing public data from Douyin, maintained by community publisher user_fb71c45d. It is categorized as data-analysis on SkillHub with a community source. The official description positions it for use when users need to conduct Douyin content research, topic selection, hotspot observation, competitor content comparison, trend judgment, or material organization, primarily targeting content operators, brand researchers, and creators.

It relies on Node.js to run (Skill metadata requires nodejs@16.14.0+) and calls the API provided by Guaikei (guaikei.com) via the environment variable GUAIKEI_API_TOKEN; this aligns with the SkillHub tag requires_api_key=true. SkillHub page statistics (as of data capture) show a rating of 100,000, 2,229 downloads, and 0 installations.

Core Functions

The Skill declares four capabilities in SKILL.md, all exposed via CLIs under scripts/douyin/:

  1. Keyword Search (search-cli.js): Searches public videos by keyword, supporting comprehensive sorting, most likes, and latest release, as well as time range, video duration, and limit cap (up to 10,000 items per request).
  2. User Works List (post-cli.js): Batch pulls published works based on user homepage URL, sec_uid, or author_sec_uid from search results.
  3. Work Comments (comment-cli.js): Fetches comment details based on video URL or aweme_id, used for public sentiment and feedback analysis.
  4. Real-time Hot List (hot-cli.js): Invoked without parameters to fetch the platform’s hot search list for tracking hotspots.

The output structure is described in the Skill’s assets/*.schema.json according to JSON Schema draft-07; execution results are written to a logs folder within the skill directory (filenames include timestamps and task types) to facilitate secondary analysis or summary by an Agent.

Installation and Activation

Install via SkillHub CLI

First, ensure skillhub is installed on your machine (see SkillHub Installation Documentation for installation methods). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be loaded by the Agent.

In Cursor, the skills directory is generally ~/.cursor/skills/. Example installation command:

skillhub install douyin-jingpinzhixiqi --namespace user_fb71c45d --dir ~/.cursor/skills/

You can also send the following prompt to an AI that supports SkillHub to complete the installation according to the official instructions:

Please install `@user_fb71c45d/douyin-jingpinzhixiqi` according to https://skillhub.cn/install/skillhub.md.

Configure API Token

After obtaining a TOKEN from the Guaikei Official Website, configure the environment variable (running without configuration will result in permission errors):

# Linux / macOS
export GUAIKEI_API_TOKEN=YOUR_TOKEN
REM Windows
set GUAIKEI_API_TOKEN=YOUR_TOKEN

After installation, execute the commands below in the Skill root directory (e.g., ~/.cursor/skills/@user_fb71c45d/douyin-jingpinzhixiqi); if the Agent has loaded the Skill, you can also describe the task in the conversation, and the Agent will select the corresponding CLI and parameters for you.

Typical Usage

The following examples are from the official Skill documentation and must be executed in the Skill installation directory.

Search by keyword:

node scripts/douyin/search-cli.js --keyword "AI"

Find high-engagement content sorted by likes:

node scripts/douyin/search-cli.js --keyword "AI" --sort 1

--sort values: 0 Comprehensive, 1 Most Likes, 2 Latest Release; --time can be 0 (All), 1 (Within a day), 7 (Within 7 days), 180 (Within half a year); --limit defaults to 10, max 10000.

Scrape public works of benchmark accounts:

node scripts/douyin/post-cli.js --url "https://www.douyin.com/user/MS4wLjABxxx"

Get comments for a single video:

node scripts/douyin/comment-cli.js --url "https://www.douyin.com/video/xxx"

View real-time hot list:

node scripts/douyin/hot-cli.js

On the Agent side, you can express requirements as natural language tasks, such as “Search Douyin videos for keyword ‘AI Model’ within the last 7 days and sort by latest,” “Pull the latest 20 works from this user’s homepage,” or “Export comments from a video for sentiment summarization.” The Agent will map these to the scripts above and parameters like --time and --limit. For a more complete parameter table, refer to references/options.md within the Skill.

Scenarios and Notes

Who is it for: Operators and researchers who need to select topics, compare competitor accounts, summarize comment sentiment, and follow hot lists based on public data; teams that want to delegate repetitive scraping to Agent orchestration to focus on interpretation and strategy.

Limitations and Notes:

  • Only supports Douyin public content; does not include private or hidden works.
  • GUAIKEI_API_TOKEN must be configured; keep the TOKEN secure to avoid leakage.
  • Official instructions require data to be used only for personal or internal team use; illegal distribution is prohibited.
  • If search results are empty, try changing to more common keywords or set --time to 0 (All time).
  • Depends on third-party APIs and platform rules; call frequency and field availability are subject to the service provider and Douyin.

Conclusion

“Douyin Competitor Analyzer” consolidates four types of public data capabilities—search, account works, comments, and hot lists—into a single set of Skills and CLIs. It is suitable for attachment to Agents like Cursor to conduct Douyin content research and competitor comparison. Installation and coordinates are subject to SkillHub:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye