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/game.md
View on GitHub# Module game.py
bilibili_api.game
游戏相关
``` python
from bilibili_api import game
```
- [class Game()](#class-Game)
- [def \_\_init\_\_()](#def-\_\_init\_\_)
- [async def get\_detail()](#async-def-get\_detail)
- [def get\_game\_id()](#def-get\_game\_id)
- [async def get\_info()](#async-def-get\_info)
- [async def get\_up\_info()](#async-def-get\_up\_info)
- [async def get\_videos()](#async-def-get\_videos)
- [async def get\_wiki()](#async-def-get\_wiki)
- [class GameRankType()](#class-GameRankType)
- [async def game\_name2id()](#async-def-game\_name2id)
- [async def get\_game\_rank()](#async-def-get\_game\_rank)
- [async def get\_start\_test\_list()](#async-def-get\_start\_test\_list)
- [def get\_wiki\_api\_root()](#def-get\_wiki\_api\_root)
---
## class Game()
游戏类
| name | type | description |
| - | - | - |
| `credential` | `Credential` | 凭据类 |
### def \_\_init\_\_()
| name | type | description |
| - | - | - |
| `game_id` | `int` | 游戏 id |
| `credential` | `Credential` | 凭据类. Defaults to None. |
### async def get_detail()
获取游戏详情
**Returns:** `dict`: 调用 API 返回的结果
### def get_game_id()
获取游戏 id
**Returns:** `int`: 游戏 id
### async def get_info()
获取游戏简介
**Returns:** `dict`: 调用 API 返回的结果
### async def get_up_info()
获取游戏官方账号
**Returns:** `dict`: 调用 API 返回的结果
### async def get_videos()
获取游戏介绍视频
**Returns:** `dict`: 调用 API 返回的结果
### async def get_wiki()
获取游戏教程(wiki)
**Returns:** `dict`: 调用 API 返回的结果
---
## class GameRankType()
**Extend: enum.Enum**
游戏排行榜类型枚举
- HOT: 热度榜
- SUBSCRIBE: 预约榜
- NEW: 新游榜
- REPUTATION: 口碑榜
- BILIBILI: B指榜
- CLIENT: 端游榜
---
## async def game_name2id()
将游戏名转换为游戏的编码
| name | type | description |
| - | - | - |
| `game_name` | `str` | 游戏名 |
**Returns:** `str`: 游戏编码
---
## async def get_game_rank()
获取游戏排行榜
| name | type | description |
| - | - | - |
| `rank_type` | `GameRankType` | 游戏排行榜类型 |
| `page_num` | `int, optional` | 页码. Defaults to 1. |
| `page_size` | `int, optional` | 每页游戏数量. Defaults to 20. |
**Returns:** `dict`: 调用 API 返回的结果
---
## async def get_start_test_list()
获取游戏公测时间线
| name | type | description |
| - | - | - |
| `page_num` | `int, optional` | 页码. Defaults to 1. |
| `page_size` | `int, optional` | 每页游戏数量. Defaults to 20. |
**Returns:** `dict`: 调用 API 返回的结果
---
## def get_wiki_api_root()
获取游戏 WIKI 对应的 api 链接,以便传入第三方库进行其他解析操作。
| name | type | description |
| - | - | - |
| `game_id` | `str` | 游戏编码 |
**Returns:** `str`: 游戏 WIKI 对应的 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 |
| 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 |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |