archibate/dotfiles-opencode / skills/bilibili-api
bilibili-api
FlaggedThis skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to bilibili", "monitor bilibili live room", "search bilibili", "get bilibili comments", or needs guidance on the bilibili_api Python library usage, authentication, API endpoints, or workflow patterns.
references/docs/modules/article_category.md
View on GitHub# Module article_category.py
bilibili_api.article_category
专栏分类相关
``` python
from bilibili_api import article_category
```
- [class ArticleOrder()](#class-ArticleOrder)
- [def get\_categories\_list()](#def-get\_categories\_list)
- [def get\_categories\_list\_sub()](#def-get\_categories\_list\_sub)
- [def get\_category\_info\_by\_id()](#def-get\_category\_info\_by\_id)
- [def get\_category\_info\_by\_name()](#def-get\_category\_info\_by\_name)
- [async def get\_category\_recommend\_articles()](#async-def-get\_category\_recommend\_articles)
---
## class ArticleOrder()
**Extend: enum.Enum**
专栏排序方式.
+ DEFAULT: 默认
+ TIME: 投稿时间排序
+ LIKE: 点赞数最多
+ COMMENTS: 评论数最多
+ FAVORITES: 收藏数最多
---
## def get_categories_list()
获取所有的分类的数据
**Returns:** `List[dict]`: 所有分区的数据
---
## def get_categories_list_sub()
获取所有分区的数据
含父子关系(即一层次只有主分区)
**Returns:** `dict`: 所有分区的数据
---
## def get_category_info_by_id()
获取专栏分类信息
| name | type | description |
| - | - | - |
| `id` | `int` | id |
**Returns:** `Tuple[dict | None, dict | None]`: 第一个是主分区,第二个是字分区。没有找到则为 (None, None)
---
## def get_category_info_by_name()
获取专栏分类信息
| name | type | description |
| - | - | - |
| `name` | `str` | 分类名 |
**Returns:** `Tuple[dict | None, dict | None]`: 第一个是主分区,第二个是字分区。没有找到则为 (None, None)
---
## async def get_category_recommend_articles()
获取指定分区的推荐文章
| name | type | description |
| - | - | - |
| `category_id` | `int` | 专栏分类的 id, 0 为全部. Defaults to 0. |
| `order` | `ArticleOrder` | 排序方式. Defaults to ArticleOrder.DEFAULT. |
| `page_num` | `int` | 页码. Defaults to 1. |
| `page_size` | `int` | 每一页数据大小. Defaults to 20. |
**Returns:** `dict`: 调用 API 返回的结果
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |