Bilibili Video Player for Openclaw

A terminal-based automation tool that uses Playwright to search Bilibili and launch video links directly in your default macOS browser.

e421083458
v1.0.0
Feb 22, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bilibili-player

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bilibili-player using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Bilibili Video Player?

The Bilibili Video Player is an efficient utility designed for Openclaw Skills that bridges the gap between terminal-based searching and browser-based playback. It utilizes a headless Playwright instance to navigate Bilibili, accurately identify the most relevant video based on a search query, and then trigger the system's native open command to start playback. This method is superior to simple scraping because it preserves the user's browser environment, including login states, cookies, and personalized audio settings.

Bilibili Video Player Use Cases

  • Rapidly launching movies or TV shows like Romance of the Three Kingdoms without manual searching.
  • Instant playback of music videos or live performances by specific artists.
  • Automating the retrieval of educational documentaries or technical tutorials via AI commands.
  • Integrating video search capabilities into broader automation workflows for Openclaw Skills.

How Bilibili Video Player Works

  1. The user inputs a search keyword through the provided shell script.
  2. The skill launches a headless Chromium instance using Playwright to visit the Bilibili search interface.
  3. The script analyzes the DOM to extract the URL of the first relevant video card.
  4. The extracted URL is passed to the macOS open command.
  5. The default system browser opens the video, ensuring a full-featured playback experience with sound and user session data.

Bilibili Video Player Setup

To integrate this into your environment for Openclaw Skills, follow these steps:

# Install the necessary Python dependencies
pip3 install playwright

# Install the Chromium browser engine
playwright install chromium

# Ensure the shell script is executable
chmod +x scripts/bilibili-player.sh

Bilibili Video Player Data Schema & Taxonomy

The skill processes search queries and extracts metadata based on specific CSS selectors to ensure link accuracy. Data handling includes:

Feature Specification
Primary Selector a[href*='/video/'] for direct video matches
Secondary Selector .bili-video-card a as a fallback
Link Resolution Full URL reconstruction for relative and protocol-relative links
Performance 60-second global timeout with a 3-second page stabilization wait

Bilibili Video Player Advanced Features

  • Headless search execution ensures that the automated search process does not interrupt the user's focus.
  • Smart fallback logic automatically opens the full search results page if a direct video link cannot be identified.
  • Session persistence leverages the user's existing browser cookies for seamless viewing of member-only or age-restricted content.
  • Cross-platform potential with minor modifications to the open command for Linux and Windows environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*