← 返回 Skills 市场
rdk14

instagram-caption-scraper

作者 rdk14 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
157
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install instagram-caption-scraper
功能描述
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, summa...
使用说明 (SKILL.md)

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: \x3Ctext> — successfully extracted caption with metadata
  • ERROR: \x3Creason> — failure with explanation

Example Triggers

Output Format

On success the script returns:

CAPTION: \x3Cfull 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
安全使用建议
This skill is coherent with its stated purpose: it runs a Python script that uses the well-known instaloader package to fetch captions from public Instagram posts. Before installing, consider: (1) installing packages from PyPI carries routine risk — verify the instaloader version and source; (2) the tool will make HTTP requests to instagram.com (expected), may be rate-limited or blocked, and cannot access private posts without login; (3) do NOT paste Instagram credentials into the script file — if you need to log in, use secure credential storage or the library's recommended session handling; (4) because it's an instruction-only skill, it only runs when invoked, so limit use to cases where a user supplies a valid Instagram URL. If you want higher assurance, inspect the included instagram_scraper.py file (provided) and review the instaloader package release notes for the pinned version.
功能分析
Type: OpenClaw Skill Name: instagram-caption-scraper Version: 1.0.0 The skill bundle is a legitimate utility for scraping captions and metadata from public Instagram posts and reels. The Python script (instagram_scraper.py) uses the well-known 'instaloader' library to fetch data based on a user-provided URL, and the agent instructions (SKILL.md) are strictly aligned with this purpose without any signs of prompt injection, data exfiltration, or malicious execution.
能力评估
Purpose & Capability
The name/description match the implementation: the script extracts the shortcode from /p/ or /reel/ URLs and uses instaloader to fetch caption and basic metadata. There are no unrelated requirements (no cloud credentials, no access to other services).
Instruction Scope
SKILL.md instructs the agent to run the included python script with a provided Instagram URL and to display the raw caption before any summary. The script only reads the provided URL (or stdin/argv) and performs a network fetch to Instagram via the instaloader library; it does not reference other files, environment variables, or external endpoints.
Install Mechanism
This is an instruction-only skill with a requirements.txt pointing to instaloader==4.14.1 (PyPI). Installing a PyPI dependency is expected for a Python scraper; this is moderate-risk compared with no installs but there are no downloads from unknown hosts or archive extraction. Note: the SKILL.md includes a dependency declaration (python3 + instaloader) while registry metadata listed no required binaries — a minor metadata inconsistency.
Credentials
No environment variables or credentials are required by default. The README and script comment mention optionally adding Instagram login credentials to access private posts; that would require the user to provide credentials (prefer secure storage instead of embedding credentials in the script). The current skill does not attempt to access any unrelated secrets or config paths.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent presence or modify other skills or system-wide settings. The instaloader library may create session/cache files if you log in, but the skill itself does not persist or alter agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install instagram-caption-scraper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /instagram-caption-scraper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial public release — provides Instagram caption extraction from public post and reel URLs. - Added command-line script to scrape captions from Instagram posts and reels using instaloader. - Outputs full caption along with metadata (owner, post type, likes, shortcode). - Handles and reports errors (e.g., private posts, invalid URLs) with clear messages. - Usage instructions and output formats provided in README. - Removed legacy shell script and previous workflow files — now focused solely on scraping Instagram captions.
元数据
Slug instagram-caption-scraper
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

instagram-caption-scraper 是什么?

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, summa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。

如何安装 instagram-caption-scraper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install instagram-caption-scraper」即可一键安装,无需额外配置。

instagram-caption-scraper 是免费的吗?

是的,instagram-caption-scraper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

instagram-caption-scraper 支持哪些平台?

instagram-caption-scraper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 instagram-caption-scraper?

由 rdk14(@rdk14)开发并维护,当前版本 v1.0.0。

💬 留言讨论