360 Secure SkillHub
360 安全技能中心

Chords Fetcher

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

分类:搜索
flobo3
flobo3
热度 31.22
最近更新 2026-05-11 17:39:08

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add flobo3/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.