360 Secure SkillHub
360 安全技能中心

Hetu Lyrics Blessing

该 Skill 通过定时任务每天 23:00 从预定义歌单中随机挑选一首河图歌曲,使用 agent-browser 访问百度百科抓取对应歌词,附上祝福语后经 SMTP 邮件发送给指定收件人;歌词抓取失败时使用预设备用内容。

分类:生活
trae1oung
trae1oung
热度 42.17
最近更新 2026-05-18 12:11:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add trae1oung/hetu-lyrics-blessing
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
hetu-lyrics-blessing
description
A daily lyrics blessing skill that sends a random Hetu (河图) song lyric to a designated recipient every day at 23:00. Lyrics are fetched from Baidu Baike using agent-browser. IMPORTANT: Uses browser automation to fetch exact lyrics from baike.baidu.com Use when: (1) Daily medicine reminder (2) Sending warm messages with verified lyrics

Hetu Lyrics Blessing (河图歌词祝福)

Daily send a random Hetu (河图) song lyric with blessing message.

Features

  • 🎵 Lyrics fetched from Baidu Baike (baike.baidu.com) via agent-browser
  • ⚠️ NEVER modify lyrics - always fetch exact text
  • 💌 Personalized blessing message
  • 📧 Email delivery via SMTP
  • ⏰ Scheduled daily at 23:00

Directory Structure

hetu-lyrics-blessing/
├── SKILL.md
└── scripts/
    └── send_lyrics.py   # Main script with browser automation

How It Works

  1. Randomly select a song from predefined list
  2. Use agent-browser to open Baidu Baike page
  3. Extract exact lyrics from the page
  4. Send email with lyrics + blessing

Quick Start

1. Install Dependencies

npm install -g agent-browser
agent-browser install --with-deps

2. Configure SMTP

Edit send_lyrics.py:

SMTP_SERVER = "smtp.qq.com"
SMTP_PORT = 465
SMTP_EMAIL = "your_email@qq.com"
SMTP_PASSWORD = "your_auth_code"
TO_EMAIL = "recipient@email.com"

3. Set up Cron

# Run daily at 23:00
crontab -l | { cat; echo "0 23 * * * /path/to/send_lyrics.py >> /path/to/log.txt 2>&1"; } | crontab -

Important Rules

  • ⚠️ ALWAYS fetch from https://baike.baidu.com
  • ⚠️ NEVER guess or modify lyrics
  • ⚠️ If lyrics not found, use predefined backup
  • Include source URL in every message