← Back to Skills Marketplace
rdk14

instagram-caption-scraper

by rdk14 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
157
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install instagram-caption-scraper
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, summa...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install instagram-caption-scraper
  3. After installation, invoke the skill by name or use /instagram-caption-scraper
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug instagram-caption-scraper
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 157 downloads so far.

How do I install instagram-caption-scraper?

Run "/install instagram-caption-scraper" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is instagram-caption-scraper free?

Yes, instagram-caption-scraper is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does instagram-caption-scraper support?

instagram-caption-scraper is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created instagram-caption-scraper?

It is built and maintained by rdk14 (@rdk14); the current version is v1.0.0.

💬 Comments