360 Secure SkillHub
360 安全技能中心

Chords Fetcher

以 Python 脚本形式运行:根据歌曲名与歌手,通过 DuckDuckGo 在 mychords.net、ultimate-guitar.com、amdm.ru 等站点检索,抓取吉他和弦与歌词文本,去除六线谱(tabs),修正和弦与歌词粘连处的空格,并在某个来源不可用时回退到下一个来源。

flobo3
flobo3
热度 44.17
最近更新 2026-05-11 17:39:08
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add chords-fetcher
Metadata
name
chords-fetcher
description
Fetch clean guitar chords and lyrics from popular sites (mychords.net, amdm.ru, ultimate-guitar.com). Strips tabs, fixes formatting.

Chords Fetcher

Fetch clean guitar chords and lyrics without ads, pop-ups, or messy guitar tabs.

Usage

When the user asks for chords to a song (e.g., "аккорды Кино Звезда по имени Солнце", "chords behind blue eyes"), use the exec tool to run the fetcher script.

uv run python chords.py <song_name_and_artist>

Features

  • Searches across multiple sources: mychords.net, ultimate-guitar.com, amdm.ru via DuckDuckGo.
  • Strips out guitar tabs (e|---, B|---, etc.) to keep the output clean.
  • Fixes spacing where chords are glued to lyrics (e.g., AmWhite snow → Am White snow).
  • Falls back to the next source if one is unavailable.

Dependencies

  • beautifulsoup4
  • ddgs (DuckDuckGo Search)

Notes

  • Run the script from the skill's directory.
  • If the script returns an error or cannot find the song, inform the user.