Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
B 站视频播放器。用 Playwright 搜索 B 站视频并获取准确链接,然后用 open 命令在当前浏览器打开播放。Use when users request to play Bilibili videos or search for specific content.
B 站视频播放器。用 Playwright 搜索 B 站视频并获取准确链接,然后用 open 命令在当前浏览器打开播放。Use when users request to play Bilibili videos or search for specific content.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
用 Playwright 无头浏览器搜索 B 站视频,获取准确链接后用系统 open 命令在用户当前浏览器打开播放。
播放电影/电视剧(如:三国演义、电影名称) 播放音乐/MV(如:伍佰 突然的自我) 播放纪录片/教程 任何需要在 B 站搜索并播放视频的场景
✅ 准确 - Playwright 直接解析页面获取视频链接 ✅ 快速 - 无头模式搜索,不阻塞用户界面 ✅ 稳定 - 用用户浏览器播放,有音频、有登录状态、有 Cookie ✅ 简单 - 一个命令完成搜索 + 打开
bilibili-player.sh "搜索关键词"
# 播放电视剧 bilibili-player.sh "三国演义 1994 火烧赤壁" bilibili-player.sh "西游记 央视版" # 播放音乐 bilibili-player.sh "伍佰 突然的自我" bilibili-player.sh "李宇春 蜀绣" # 播放电影 bilibili-player.sh "流浪地球"
用户请求 → Playwright 搜索 → 提取视频链接 → open 命令打开 → 浏览器播放
Playwright 搜索 - 无头 Chromium 访问 B 站搜索页面 解析页面 - 提取第一个视频卡片的链接 open 打开 - 用 macOS open 命令在默认浏览器打开 播放 - 用户在浏览器中观看(有声音、有登录状态)
Python 脚本,执行搜索和打开操作。 依赖: Python 3 Playwright (pip3 install playwright) 用法: python3 bilibili-player.py "搜索关键词"
Shell 封装脚本,方便直接调用。 用法: ./bilibili-player.sh "搜索关键词"
脚本使用以下选择器查找视频链接(按优先级): selectors = [ "a[href*='/video/']", # 最准确:包含/video/的链接 ".bili-video-card a", # 备选:视频卡片的链接 ]
相对链接自动补全为完整 URL 支持 // 开头的协议相对链接
如果找不到视频,打开搜索页面 超时时间:60 秒 等待页面加载:3 秒
仅支持 macOS(依赖 open 命令) 需要安装 Playwright 需要网络连接
如需支持其他平台: Linux: 用 xdg-open 替代 open Windows: 用 start 替代 open
scripts/bilibili-player.py - 主脚本 scripts/bilibili-player.sh - Shell 封装
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.