SkillsGrove
SkillsGrove/ショート動画・クリエイター/leamsigc/ShortsGenerator/ig-research-scrape

ig-research-scrape

インストール

$npx skills add https://github.com/leamsigc/ShortsGenerator --skill ig-research-scrape
$git clone --depth 1 https://github.com/leamsigc/ShortsGenerator.git /tmp/ShortsGenerator && mkdir -p ~/.claude/skills && cp -r /tmp/ShortsGenerator/skills/ig-research-scrape ~/.claude/skills/ig-research-scrape
この Agent Skill をインストールしてください:https://github.com/leamsigc/ShortsGenerator/tree/7e4e16b8c5cb51f61836265189e3a89282228e40/skills/ig-research-scrape — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · MITScrape state — runs the Instagram scraper via Chrome DevTools Protocol. Requires config.json to exist in the project directory. Reads search terms + competitors from config, scrapes engagement data, downloads audio, and captures hook screenshots.
以下の SKILL.md は leamsigc/ShortsGenerator(コミット 7e4e16b)から MIT ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2024 leamsigc。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Social Research — Scrape State

Scrapes top-performing Instagram posts in a niche. Requires Chrome running with --remote-debugging-port=9222 and user logged into Instagram.

Before running

Ensure:

  1. Chrome is open with --remote-debugging-port=9222 flag
  2. Instagram is logged in (tab stays open)
  3. Config exists at .ig-research/projects/<project-name>/config.json

Run

node "$CLAUDE_SKILL_ROOT/scripts/scrape.js" <project-name> [sessionId]
# fallback: node ./skills/ig-research/scripts/scrape.js <project-name> --session $SESSION

Important: Keep the Instagram tab in the foreground (visible, not minimized) while this runs. Chrome throttles background tabs and screenshots will fail.

What it does

  1. Navigates to Instagram hashtag search pages (from config.searchTerms)
  2. Scrolls to collect post links
  3. Visits each post and extracts: likes, comments, shares, caption, author, post type
  4. Pauses video and captures screenshots at 0s, 1s, 2s (reels only)
  5. Downloads audio via yt-dlp (reels only)
  6. Navigates to competitor profiles (if configured) and repeats
  7. Deduplicates and sorts results by engagement
  8. Saves raw-posts.json

Output

.ig-research/projects/<project-name>/
├── raw-posts.json        # All scraped data, sorted by engagement
├── hook-screenshots/     # First 3 frames of each Reel (jpg)
└── transcripts/          # Audio files (m4a) for transcription

Platform-specific scrapers

  • Instagram: scripts/scrape.js (default)
  • Future: platforms/<name>/scrape.js

Override by setting config.platform and using the corresponding scraper:

node "$CLAUDE_SKILL_ROOT/platforms/<platform>/scrape.js" <project-name> --session $SESSION
ライセンス全文を見る(MIT)
MIT License

Copyright (c) 2024 leamsigc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.