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
累计下载
3,217
星标
5
全站排名
#3,535
全站前 70% · 「生活服务」前 72%
平台累计安装累计下载星标评论
ClawHub ↗1033,1405-
SkillHub ↗1433,2175—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

技能提供列表读取、歌曲评价及播放列表增删等操作。浏览器认证步骤要求复制已登录请求的 cURL 内容并保存到文件;其中可能含有账户凭据,应限制文件访问并避免分享。 认证文件应妥善保护,修改播放列表或曲库前需先审核。

资料发布于 2026-10-29

可以用来做什么

  • 查询曲目或专辑
  • 管理播放列表
  • 评价或调整曲库项目

什么时候用

  • 已具备 ytmusicapi 和可用认证配置时
  • 从浏览器生成认证文件前,先检查其敏感内容及保存位置

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

概述如何管理音乐库,并说明浏览器认证文件的安全注意事项。

月度数据趋势

累计下载3,217
2,1672,7313,2952026-03 · 累计下载 2,2452026-05 · 累计下载 2,6552026-06 · 累计下载 2,7672026-07 · 累计下载 2,9722026-08 · 累计下载 3,0622026-09 · 累计下载 3,21726-0326-09
星标5
4552026-03 · 星标 42026-05 · 星标 52026-06 · 星标 52026-07 · 星标 52026-08 · 星标 52026-09 · 星标 526-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,217—5
2026-083,062+3.0%5
2026-072,972+7.4%5
2026-062,767+4.2%5
2026-052,655—5
2026-032,245—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),按月更新。口径说明见数据方法。