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.
scripts/quickstart.py
View on GitHub#!/usr/bin/env python3
"""
bilibili-api Quickstart Example
Demonstrates basic video info retrieval using both async and sync patterns.
Usage:
uv run python quickstart.py
# or
python quickstart.py
"""
import asyncio
from bilibili_api import video
from bilibili_api import sync # noqa: F401 - used for sync_example
# Async version
async def async_example():
print("=== Async Example ===")
# Create video instance
v = video.Video(bvid="BV1uv411q7Mv")
# Get video info
info = await v.get_info()
print(f"Title: {info['title']}")
print(f"BV ID: {info['bvid']}")
print(f"Author: {info['owner']['name']}")
print(f"Views: {info['stat']['view']:,}")
print(f"Likes: {info['stat']['like']:,}")
print(f"Description: {info['desc'][:100]}...")
# Get online count
online = await v.get_online()
print(f"Online viewers: {online['total']}")
# Sync version
def sync_example():
print("\n=== Sync Example ===")
v = video.Video(bvid="BV1GK4y1V7HP")
info = sync(v.get_info())
print(f"Title: {info['title']}")
print(f"Views: {info['stat']['view']:,}")
if __name__ == "__main__":
# Run async example
asyncio.run(async_example())
# Run sync example
sync_example()
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: 466k | Updated | Claude CodeCodex | Unverified | 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: 466k | Updated | Claude CodeCodex | Unverified | 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 |