gequhai-music

搜索和下载歌曲海(gequhai.com)的音乐,支持搜索歌曲、获取下载链接(优先无损/高品质), 并可一键下载到群晖NAS。当用户询问歌曲、搜索音乐、或想下载歌曲时使用此技能。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gequhai-music" with this command: npx skills add anlinxi/gequhai-music

歌曲海 (Gequhai) 音乐搜索与下载技能

搜索歌曲海音乐,支持下载到群晖NAS。

功能

  1. 搜索歌曲 - 按歌名/歌手搜索
  2. 获取下载链接 - 优先无损/高品质,其次是标准品质
  3. 排行榜 - 热门榜、新歌榜、飙升榜、抖音榜等
  4. 下载到群晖 - 一键添加到群晖DownloadStation

网站信息

下载链接类型

类型说明可下载到群晖
标准品质(API)通过API获取的直接mp3链接✅ 可以
高品质(直接链接)页面上的直接mp3/flac链接✅ 可以
高品质(网盘链接)夸克网盘等分享链接❌ 需手动下载

重要: API请求需要带上 X-Custom-Header: SecretKey 才能成功!

使用方法

1. 搜索歌曲

python scripts/gequhai_crawler.py --search "青花瓷"

2. 获取歌曲详情和下载链接

python scripts/gequhai_crawler.py --detail 553

3. 搜索并下载

python scripts/gequhai_crawler.py --download "周杰伦 晴天"

4. Python脚本调用

from scripts.gequhai_crawler import search_songs, get_download_url, download_song

# 搜索歌曲
songs = search_songs("青花瓷")
for s in songs[:5]:
    print(f"[{s['id']}] {s['title']} - {s['artist']}")

# 获取下载链接
detail = get_download_url("553")
print(f"标题: {detail['title']}")
print(f"下载链接: {detail.get('url', detail.get('netdisk_url'))}")
print(f"品质: {detail.get('quality')}")

# 下载到群晖
result = download_song(detail, destination="download/音乐下载")
print(f"下载结果: {result}")

群晖下载配置

配置项
主机192.168.123.223:5000
用户xiaoai
默认下载目录download/音乐下载

交互流程示例

用户问:帮我下载周杰伦的青花瓷

  1. 搜索"青花瓷"
  2. 获取第一首歌的下载链接
  3. 如果是直接链接 → 添加到群晖下载
  4. 如果是网盘链接 → 告知用户网盘地址

用户问:最近有什么好听的歌?

  1. 获取热门歌曲列表
  2. 展示给用户选择
  3. 用户选择后下载

注意事项

  1. API验证:必须带上 X-Custom-Header: SecretKey header,否则API返回403
  2. Session:需要使用Session保持cookie,先访问播放页再请求API
  3. 下载链接类型:高品质版本通常是网盘链接,标准品质是直接mp3链接
  4. 请求频率:避免频繁请求,以免被封IP

关键代码

# API请求必须带上这个header
api_headers = {
    "X-Requested-With": "XMLHttpRequest",
    "X-Custom-Header": "SecretKey",  # 关键!
}

# 使用Session保持cookie
session = requests.Session()
# 先访问播放页面获取cookie
session.get(f"{BASE_URL}/play/{song_id}")
# 再请求API
session.post(f"{BASE_URL}/api/music", headers=api_headers, data={...})

错误处理

错误原因解决方案
未找到歌曲关键词不匹配尝试其他关键词
没有下载链接歌曲暂无资源换一首歌
网盘链接高品质版本在网盘手动下载或使用标准品质

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

通义晓蜜 - 智能外呼

触发阿里云晓蜜外呼机器人任务,自动批量拨打电话。适用于批量外呼、客户回访、满意度调查、简历筛查约面试等场景。可从前置工具或节点获取外呼名单。

Registry SourceRecently Updated
General

Letterboxd Watchlist

Scrape a public Letterboxd user's watchlist into a CSV/JSONL list of titles and film URLs without logging in. Use when a user asks to export, scrape, or mirror a Letterboxd watchlist, or to build watch-next queues.

Registry SourceRecently Updated
General

Seedance Video Generation

Generate AI videos using ByteDance Seedance. Use when the user wants to: (1) generate videos from text prompts, (2) generate videos from images (first frame, first+last frame, reference images), or (3) query/manage video generation tasks. Supports Seedance 1.5 Pro (with audio), 1.0 Pro, 1.0 Pro Fast, and 1.0 Lite models.

Registry SourceRecently Updated
4.2K17jackycser
General

Universal Skills Manager

The master coordinator for AI skills. Discovers skills from multiple sources (SkillsMP.com, SkillHub, and ClawHub), manages installation, and synchronization...

Registry SourceRecently Updated