gentrycopsy

YouTube Music

生活服務v1.0.1
作者:gentrycopsy更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-01-26ytmusic@clawhub_gentrycopsy/ytmusic
娛樂推薦#Music

據 AlphaMoat 統計,截至 2026-09,YouTube Music 累計下載 3,217 次、獲 5 個星標,在全部 5,078 個 AI 技能中排名第 3,535 位,在「生活服務」分類(246 個)中排名第 177 位。

累計安裝
143
累計下載
3217
星標
5
全站排名
#3,535
全站前 70% · 「生活服務」前 72%
平台累計安裝累計下載星標評論
ClawHub ↗10331405-
SkillHub ↗14332175—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

技能提供列表讀取、歌曲評價及播放列表增刪等操作。瀏覽器認證步驟要求複製已登入請求的 cURL 內容並儲存到檔案;其中可能含有帳戶憑據,應限制檔案訪問並避免分享。 認證檔案應妥善保護,修改播放列表或曲庫前需先稽核。

資料釋出於 2026-10-29

可以用來做什麼

  • 查詢曲目或專輯
  • 管理播放列表
  • 評價或調整曲庫專案

什麼時候用

  • 已具備 ytmusicapi 和可用認證配置時
  • 從瀏覽器生成認證檔案前,先檢查其敏感內容及儲存位置

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

概述如何管理音樂庫,並說明瀏覽器認證檔案的安全注意事項。

月度資料趨勢

累計下載3217
2167273132952026-03 · 累計下載 22452026-05 · 累計下載 26552026-06 · 累計下載 27672026-07 · 累計下載 29722026-08 · 累計下載 30622026-09 · 累計下載 321726-0326-09
星標5
4552026-03 · 星標 42026-05 · 星標 52026-06 · 星標 52026-07 · 星標 52026-08 · 星標 52026-09 · 星標 526-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093217—5
2026-083062+3.0%5
2026-072972+7.4%5
2026-062767+4.2%5
2026-052655—5
2026-032245—4

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

1.9 KB · ClawHub v1.0.1
---
name: ytmusic-librarian
description: Manage YouTube Music library, playlists, and discovery via ytmusicapi.
---

# YTMusic Librarian

This skill uses the `ytmusicapi` Python library to interact with YouTube Music.

## Prerequisites
展開全部(共 57 行)

- Python 3.x
- `ytmusicapi` package: `pip install ytmusicapi`
- Authentication file (`oauth.json` or `browser.json`) in the skill folder.

## Setup Instructions

1. **Install the library:**
   ```bash
   pip install ytmusicapi
   ```

2. **Generate Authentication (The "cURL Handshake"):**
   - Open **Microsoft Edge** and visit [music.youtube.com](https://music.youtube.com) (ensure you are logged in).
   - Press `F12` to open DevTools, go to the **Network** tab.
   - Click your **Profile Icon -> Library** on the page.
   - Look for a request named `browse` in the network list.
   - **Right-click** the `browse` request -> **Copy -> Copy as cURL (bash)**.
   - Paste that cURL command into a file named `headers.txt` in the skill folder.
   - Run the following Python snippet to generate `browser.json`:
     ```python
     from ytmusicapi.auth.browser import setup_browser
     with open('headers.txt', 'r') as f:
         setup_browser('browser.json', f.read())
     ```
   - Ensure `browser.json` is located in the skill folder.

3. **Verify:**
   ```bash
   python -c "from ytmusicapi import YTMusic; yt = YTMusic('browser.json'); print(yt.get_library_songs(limit=1))"
   ```

## Workflows

### Library Management
- List songs/albums: `yt.get_library_songs()`, `yt.get_library_albums()`
- Add/Remove: `yt.rate_song(videoId, 'LIKE')`, `yt.edit_song_library_status(feedbackToken)`

### Playlist Management
- Create: `yt.create_playlist(title, description)`
- Add Tracks: `yt.add_playlist_items(playlistId, [videoIds])`
- Remove Tracks: `yt.remove_playlist_items(playlistId, [videoIds])`

### Metadata & Discovery
- Get Lyrics: `yt.get_lyrics(browseId)`
- Get Related: `yt.get_watch_playlist(videoId)` -> `related`

「生活服務」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。