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/vote_id.md
View on GitHub# 获取 vote_id
在操作投票时,需要 vote_id,有两种获取方式:
## 1. 爬取动态获取
举例:以下是一个动态:
``` python
{
...
"extension": {
"vote_cfg": {"vote_id": 2773489, "desc": "各位觉得字幕对观感影响大么?", "join_num": 1219},
"vote": '{"choice_cnt":1,"default_share":1,"default_text":"","desc":"各位觉得字幕对观感影响大么?","endtime":1654678098,"join_num":1219,"options":[{"btn_str":"","desc":"加字幕吧,观众看着方便些!","idx":1,"title":""},{"btn_str":"","desc":"不用字幕,长视频加起来麻烦,而且有点挡","idx":2,"title":""}],"status":4,"type":0,"uid":471723540,"vote_id":2773489}',
},
"extend_json": {
...
"vote": {
"choice_cnt": 1,
"default_share": 1,
"default_text": "",
"desc": "各位觉得字幕对观感影响大么?",
"endtime": 1654678098,
"join_num": 1219,
"options": [
{"btn_str": "", "desc": "加字幕吧,观众看着方便些!", "idx": 1, "title": ""},
{"btn_str": "", "desc": "不用字幕,长视频加起来麻烦,而且有点挡", "idx": 2, "title": ""},
],
"status": 4,
"type": 0,
"uid": 471723540,
"vote_id": 2773489,
},
},
...
}
```
我们能发现,这里有`vote_id`字段,值为 `2773489`。
## 2.网页源代码
**需要已经用 javascript 加载好的页面查询**
1. 按 **F12** 打开开发者工具。
2. 找到投票链接对应的 `div` 的源代码

3. 大家可以看到一个 span 片段:
``` html
<span data=module="desc" data-type="vote" data-oid="2773489" class="bili-rich-text-module vote">
...
</span>
```
很明显,这就是投票入口片段(看 `data-type`)我们能看到这个片段有一个属性:`data-oid`,没错这个值就是 `vote_id`。
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: 469k | 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: 321k | 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: 321k | 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: 321k | Updated | Claude CodeCodex | Verified | Install |