bilibili-follow 是做什么的?
Export Bilibili follow list, classify with ChatGPT/Claude/Gemini or other frontier LLMs, then sync groups back.
Overview
This skill helps you automate the management of your Bilibili followed channels. It exports your current follow list, sends the channel names and descriptions to a large language model (LLM) for intelligent classification into user-defined groups, and then updates the groups on Bilibili.
Features
- Export follows: Retrieve your complete list of followed Bilibili channels.
- AI classification: Use ChatGPT, Claude, Gemini, or any compatible LLM to categorize channels based on content, niche, or custom labels.
- Sync groups: Automatically apply the new group assignments back to your Bilibili account.
- Customizable: Define your own classification criteria and group names.
Requirements
- A Bilibili account with a follow list.
- API access to Bilibili (via cookies or tokens).
- An API key for a supported LLM (e.g., OpenAI, Anthropic, Google).
Usage
- Configure your Bilibili credentials and LLM API key in the environment variables or config file.
- Run the export command to fetch your follow list.
- Provide classification rules (e.g., group names or categories) to the LLM.
- Run the sync command to update Bilibili groups.
Example commands:
# Export follows
bilibili-follow export
# Classify with LLM
bilibili-follow classify --groups "Tech, Gaming, Education, Music"
# Sync back
bilibili-follow sync
Configuration
| Variable | Description |
|---|---|
BILIBILI_SESSDATA | Bilibili session cookie |
LLM_API_KEY | API key for LLM service |
LLM_MODEL | Model name (e.g., gpt-4, claude-3) |
License
MIT