360 Secure SkillHub
360 安全技能中心

instagram-caption-scraper

通过 Python 脚本按用户提供的公开 Instagram 帖子或 Reel 链接抓取文案正文,成功时返回 CAPTION 文本以及作者、内容类型、点赞数、Shortcode 等元数据,失败时返回 ERROR 说明;支持在拿到原始文案后由调用方再做摘要、翻译或分析。

分类:数据
rdk14
rdk14
热度 39.66
最近更新 2026-05-18 12:28:44

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rdk14/instagram-caption-scraper
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
instagram-caption
description
Scrapes and returns the caption from any public Instagram post or reel URL. Use this when the user shares an Instagram link and wants to extract, read, summarise, translate, or analyse the caption of that post or reel.
version
1.0.0
author
Raj
openclaw
{"emoji":"📸","requires":{"bins":["python3"],"pip":["instaloader==4.14.1"]}}

Instagram Caption Scraper

Purpose

Extract the caption text from a public Instagram post or reel URL provided by the user.

When to Use This Skill

Trigger this skill when the user:

  • Shares an Instagram URL containing /p/ or /reel/
  • Says "get the caption", "what does this post say", "read this reel", "summarise this Instagram post"
  • Wants to translate, rewrite, or analyse an Instagram caption

How to Run

Execute the following shell command, replacing {{url}} with the Instagram URL:

python3 {{skill_dir}}/instagram_scraper.py {{url}}

The script will return one of:

  • CAPTION: <text> — successfully extracted caption with metadata
  • ERROR: <reason> — failure with explanation

Example Triggers

Output Format

On success the script returns:

CAPTION: <full caption text>

---
Owner   : @username
Type    : GraphImage / GraphVideo / GraphSidecar
Likes   : 1234
Shortcode: ABC123

Rules

  • Only trigger when a valid Instagram URL (/p/ or /reel/) is present
  • Never fabricate or guess caption content if the script returns an error
  • If the post is private, inform the user and suggest they check the account's privacy settings
  • Always display the full caption before offering any summary or analysis
  • If the user asks to summarise or translate, do so AFTER displaying the raw caption

Setup Notes

Requires Python 3.8+ and the instaloader library:

pip3 install instaloader==4.14.1