360 Secure SkillHub
360 安全技能中心

instagram-digest

按配置文件中的账号列表抓取 Instagram 近期 Reels(及 Stories),转写音频并调用 OpenRouter 生成 AI 摘要,输出 digest.html 供本地查看,同时可发送邮件摘要;单个账号遇登录墙或转写失败时跳过并继续,可用 --accounts 临时指定账号、--list-accounts 查看已配置账号。

sirimaddala99
sirimaddala99
热度 50.52
最近更新 2026-05-11 17:37:48
分类:自动化依赖:联网浏览搜索 / 代码执行 / 第三方 API / 读写文件 / 内部调用大模型应用场景:社交媒体 / 摘要总结 / 自动化脚本 / 数据处理 ...

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add instagram-digest
Metadata
name
instagram-digest
description
Scrape recent Instagram reels, transcribe audio, summarize with OpenRouter, and save a digest.html file
metadata
{"openclaw":{"requires":{"env":["OPENROUTER_API_KEY"],"optionalEnv":["INSTAGRAM_USERNAME","INSTAGRAM_PASSWORD"],"anyBins":["python3","python"]},"primaryEnv":"OPENROUTER_API_KEY"}}

Instagram Digest Skill

Scrapes Instagram reels from a configured list of accounts, transcribes their audio, generates AI summaries, and saves a digest.html file for local viewing.

When to Use

Trigger this skill when the user asks to:

  • Run / send the Instagram digest
  • Get a summary of recent Instagram reels
  • Check what accounts are being tracked
  • Add or remove accounts from the digest
  • Do a dry run / preview without sending email

Working Directory

All commands must be run from the skill's own directory:

cd /path/to/instagram-digest

Commands

Run the digest (saves digest.html)

python main.py

Run digest for specific accounts only

python main.py --accounts username1 username2 username3

List currently configured accounts

python main.py --list-accounts

Adding / Removing Accounts Permanently

The default account list lives in config.py under INSTAGRAM_ACCOUNTS. To permanently add or remove an account, edit that list. Then confirm by running --list-accounts.

Environment Variables

Variable Required Purpose
OPENROUTER_API_KEY ✅ Required OpenRouter API key for transcript summarization (uses Nvidia Nemotron via OpenRouter)
INSTAGRAM_USERNAME Optional Instagram login for story access — use a dedicated throwaway account
INSTAGRAM_PASSWORD Optional Instagram password for story access — use a dedicated throwaway account

Output

Writes digest.html to the skill directory. Open it in a browser to read audio summaries for each reel.

Error Handling

  • If Instagram returns a login wall for an account, that account is skipped and the digest continues with the rest.
  • If transcription or analysis fails for a reel, a fallback message is shown for that item — the digest still sends.
  • If no new reels or stories are found across all accounts, the email is skipped entirely and a message is printed.