bilibili-player
B 站视频播放器。用 Playwright 搜索 B 站视频并获取准确链接,然后用 open 命令在当前浏览器打开播放。Use when users request to play Bilibili videos or search for specific content.
Why use this skill?
Instantly search and play Bilibili videos directly from your OpenClaw agent. This skill uses Playwright for accurate results and your default browser for seamless playback.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/e421083458/bilibili-playerWhat This Skill Does
The Bilibili Player skill acts as an intelligent bridge between your OpenClaw agent and the Bilibili platform. It leverages Playwright, a powerful headless browser automation library, to perform real-time searches on Bilibili. When you provide a search query, the skill navigates to the Bilibili search engine, analyzes the results page, identifies the most relevant video link, and triggers your system's default web browser to open the URL. By using the system's native 'open' command, the skill ensures that the video plays within your logged-in browser session, maintaining your preferences, watch history, and authentication status. This automation eliminates the need to manually open a browser, navigate to the site, type in the search bar, and click on results.
Installation
To install this skill, use the ClawHub command line interface. Ensure you have Python 3 and the Playwright framework installed on your system. Run the following command in your terminal:
clawhub install openclaw/skills/skills/e421083458/bilibili-player
Ensure that your environment meets the dependency requirements, specifically pip3 install playwright, to allow the script to execute browser operations correctly.
Use Cases
This skill is highly versatile for users who consume content on Bilibili regularly. It is perfect for:
- Quickly starting a specific lecture or educational tutorial.
- Accessing entertainment media like movies, documentaries, or anime without searching manually.
- Integrating music or MV playback directly into your AI agent's workflow.
- Streamlining research workflows where video references need to be opened instantly during task execution.
Example Prompts
- "Play the 1994 version of Romance of the Three Kingdoms, specifically the burning of Red Cliffs episode."
- "Search for and open a good tutorial on Python asynchronous programming on Bilibili."
- "I want to listen to Wu Bai's 'Suddenly Self' music video, can you open it for me?"
Tips & Limitations
- Platform Compatibility: Currently, this skill is optimized for macOS using the
opencommand. Linux users may need to modify the script to usexdg-open, and Windows users should substitute the command withstart. - Browser Integration: Because this skill opens the link in your default browser, it respects your existing cookies and login session. This means you can watch subscriber-only content without re-authenticating.
- Performance: The skill uses a headless browser for searching to save system resources; however, the actual playback occurs in your full browser instance, ensuring the best viewing experience.
- Requirement: A stable internet connection is required to allow Playwright to fetch the search results page effectively.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-e421083458-bilibili-player": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution