360 Secure SkillHub
360 安全技能中心

Hetu Lyrics Blessing

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

trae1oung
trae1oung
热度 56.14
最近更新 2026-05-18 12:11:01
分类:生活依赖:代码执行 / 联网浏览搜索 / 第三方 API应用场景:日程安排 / 邮件起草 / 健康 / 自动化脚本 ...

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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