搜索歌曲|搜索音乐|搜索歌曲XXXX|搜索音乐XXXX

import re
from urllib.parse import quote

text = str(query or "").strip()

match = re.fullmatch(
    r"(?:请帮我|请帮忙|帮我|帮忙|请)?\s*"
    r"(?:搜索歌曲|搜索音乐)\s*(.*)",
    text,
)

if not match:
    result = "执行失败：请使用“搜索歌曲＋歌名”或“搜索音乐＋歌名”。"
else:
    keyword = match.group(1).strip()

    if not keyword:
        result = open_url("https://higequ.com/")
    else:
        search_url = (
            "https://higequ.com/s/"
            + quote(keyword, safe="")
            + "/"
        )
        result = open_url(search_url)
        result += f"\n站内搜索：{keyword}"
