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/examples/video_uploader.md
View on GitHub# 示例:上传视频
```python
from bilibili_api import sync, video_uploader, Credential
async def main():
credential = Credential(sessdata="", bili_jct="", buvid3="")
# 具体请查阅相关文档和 VideoMeta 内代码注释
# 建议使用 VideoMeta 类来构建 meta 信息,避免参数错误,但也兼容直接传入 dict
# meta = {
# "act_reserve_create": 0,
# "copyright": 1,
# "source": "",
# "desc": "",
# "desc_format_id": 0,
# "dynamic": "",
# "interactive": 0,
# "no_reprint": 1,
# "open_elec": 0,
# "origin_state": 0,
# "subtitles": {
# "lan": "",
# "open": 0
# },
# "tag": "音乐,音乐综合",
# "tid": 130,
# "title": "title",
# "up_close_danmaku": False,
# "up_close_reply": False,
# "up_selection_reply": False,
# "dtime": 0
# }
# vu_porden_meta = video_uploader.VideoPorderMeta(video_uploader.VideoPorderType.FIREWORK) # 商单参数
vu_meta = video_uploader.VideoMeta(
tid=130,
title="title",
tags=["音乐综合", "音乐"],
desc="",
cover="/cover.png",
no_reprint=True,
)
# await vu_meta.verify(credential=credential) # 本地预检 meta 信息,出错则抛出异常
page = video_uploader.VideoUploaderPage(
path="video.mp4",
title="标题",
description="简介",
)
uploader = video_uploader.VideoUploader(
[page], vu_meta, credential, line=video_uploader.Lines.QN
) # 选择七牛线路,不选则自动测速选择最优线路
# uploader = video_uploader.VideoUploader([page], meta, credential, cover='cover.png')
# # meta 直接传入 dict 则需要在 video_uploader.VideoUploader 传入封面
@uploader.on("__ALL__")
async def ev(data):
print(data)
await uploader.start()
sync(main())
```
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: 468k | 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 |