instagram-research
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstagram Research
Instagram研究
Research high-performing Instagram posts and reels, identify outliers, and analyze top video content for hooks and structure.
研究表现优异的Instagram帖子和Reels,识别异常值内容,并分析顶级视频内容的钩子和结构。
Prerequisites
前置条件
- environment variable or in
APIFY_TOKEN.env - environment variable or in
GEMINI_API_KEY.env - and
apify-clientPython packagesgoogle-genai - Accounts configured in
.claude/context/instagram-accounts.md
Verify setup:
bash
python3 -c "
import os
try:
from dotenv import load_dotenv
load_dotenv()
except ImportError:
pass
from apify_client import ApifyClient
from google import genai
assert os.environ.get('APIFY_TOKEN'), 'APIFY_TOKEN not set'
assert os.environ.get('GEMINI_API_KEY'), 'GEMINI_API_KEY not set'
" && echo "Prerequisites OK"- 需设置环境变量或在
APIFY_TOKEN文件中配置.env - 需设置环境变量或在
GEMINI_API_KEY文件中配置.env - 需安装和
apify-clientPython包google-genai - 需在中配置好账号
.claude/context/instagram-accounts.md
验证设置:
bash
python3 -c "
import os
try:
from dotenv import load_dotenv
load_dotenv()
except ImportError:
pass
from apify_client import ApifyClient
from google import genai
assert os.environ.get('APIFY_TOKEN'), 'APIFY_TOKEN not set'
assert os.environ.get('GEMINI_API_KEY'), 'GEMINI_API_KEY not set'
" && echo "Prerequisites OK"Workflow
工作流程
1. Create Run Folder
1. 创建运行文件夹
bash
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"bash
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"2. Fetch Content
2. 获取内容
bash
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py \
--type reels \
--days 30 \
--limit 50 \
--output {RUN_FOLDER}/raw.jsonParameters:
- : "posts", "reels", or "stories"
--type - : Days back to search (default: 30)
--days - : Max items per account (default: 50)
--limit
bash
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py \
--type reels \
--days 30 \
--limit 50 \
--output {RUN_FOLDER}/raw.json参数说明:
- :可选值为"posts"、"reels"或"stories"
--type - :回溯搜索的天数(默认:30)
--days - :每个账号最多获取的内容数量(默认:50)
--limit
3. Identify Outliers
3. 识别异常值内容
bash
python3 .claude/skills/instagram-research/scripts/analyze_posts.py \
--input {RUN_FOLDER}/raw.json \
--output {RUN_FOLDER}/outliers.json \
--threshold 2.0Output JSON contains:
- : Number of posts analyzed
total_posts - : Number of outliers found
outlier_count - : Top hashtags and keywords
topics - : List of accounts analyzed
accounts - : Array of outlier posts with engagement metrics
outliers
bash
python3 .claude/skills/instagram-research/scripts/analyze_posts.py \
--input {RUN_FOLDER}/raw.json \
--output {RUN_FOLDER}/outliers.json \
--threshold 2.0输出的JSON包含:
- :分析的帖子总数
total_posts - :找到的异常值数量
outlier_count - :热门话题标签和关键词
topics - :分析的账号列表
accounts - :包含互动数据的异常值帖子数组
outliers
4. Analyze Top Videos with AI
4. 用AI分析顶级视频
bash
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input {RUN_FOLDER}/outliers.json \
--output {RUN_FOLDER}/video-analysis.json \
--platform instagram \
--max-videos 5Extracts from each video:
- Hook technique and replicable formula
- Content structure and sections
- Retention techniques
- CTA strategy
See the skill for full output schema and hook/format types.
video-content-analyzerbash
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input {RUN_FOLDER}/outliers.json \
--output {RUN_FOLDER}/video-analysis.json \
--platform instagram \
--max-videos 5从每个视频中提取以下信息:
- 钩子技巧和可复制的公式
- 内容结构和板块
- 留存用户的技巧
- CTA策略
查看技能获取完整的输出 schema 和钩子/格式类型。
video-content-analyzer5. Generate Report
5. 生成报告
Read and , then generate .
{RUN_FOLDER}/outliers.json{RUN_FOLDER}/video-analysis.json{RUN_FOLDER}/report.mdReport Structure:
markdown
undefined读取和,然后生成。
{RUN_FOLDER}/outliers.json{RUN_FOLDER}/video-analysis.json{RUN_FOLDER}/report.md报告结构:
markdown
undefinedInstagram Research Report
Instagram研究报告
Generated: {date}
生成日期:{date}
Top Performing Hooks
顶级表现钩子
Ranked by engagement. Use these formulas for your content.
按互动量排序。可将这些公式用于你的内容创作。
Hook 1: {technique} - @{username}
钩子1:{technique} - @{username}
- Opening: "{opening_line}"
- Why it works: {attention_grab}
- Replicable Formula: {replicable_formula}
- Engagement: {likes} likes, {comments} comments, {views} views
- Watch Video
[Repeat for each analyzed video]
- 开场: "{opening_line}"
- 为何有效: {attention_grab}
- 可复制公式: {replicable_formula}
- 互动数据: {likes} 点赞,{comments} 评论,{views} 浏览量
- 观看视频
[为每个分析的视频重复上述内容]
Content Structure Patterns
内容结构模式
| Video | Format | Pacing | Key Retention Techniques |
|---|---|---|---|
| @username | {format} | {pacing} | {techniques} |
| 视频 | 格式 | 节奏 | 核心留存技巧 |
|---|---|---|---|
| @username | {format} | {pacing} | {techniques} |
CTA Strategies
CTA策略
| Video | CTA Type | CTA Text | Placement |
|---|---|---|---|
| @username | {type} | "{cta_text}" | {placement} |
| 视频 | CTA类型 | CTA文案 | 位置 |
|---|---|---|---|
| @username | {type} | "{cta_text}" | {placement} |
All Outliers
所有异常值内容
| Rank | Username | Likes | Comments | Views | Engagement Rate |
|---|---|---|---|---|---|
| [List all outliers with metrics and links] |
| 排名 | 用户名 | 点赞 | 评论 | 浏览量 | 互动率 |
|---|---|---|---|---|---|
| [列出所有带数据和链接的异常值内容] |
Trending Topics
热门话题
Top Hashtags
顶级话题标签
[From outliers.json topics.hashtags]
[来自outliers.json的topics.hashtags]
Top Keywords
顶级关键词
[From outliers.json topics.keywords]
[来自outliers.json的topics.keywords]
Actionable Takeaways
可落地的行动建议
[Synthesize patterns into 4-6 specific recommendations]
[将模式整合为4-6条具体的建议]
Accounts Analyzed
分析的账号列表
[List accounts]
Focus on actionable insights. The "Top Performing Hooks" section with replicable formulas should be prominent.[列出所有分析的账号]
重点关注可落地的洞察。包含可复制公式的"顶级表现钩子"部分应突出显示。Quick Reference
快速参考
Full pipeline:
bash
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py --type reels -o "$RUN_FOLDER/raw.json" && \
python3 .claude/skills/instagram-research/scripts/analyze_posts.py -i "$RUN_FOLDER/raw.json" -o "$RUN_FOLDER/outliers.json" && \
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py -i "$RUN_FOLDER/outliers.json" -o "$RUN_FOLDER/video-analysis.json" -p instagramThen read both JSON files and generate the report.
完整流程:
bash
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py --type reels -o "$RUN_FOLDER/raw.json" && \
python3 .claude/skills/instagram-research/scripts/analyze_posts.py -i "$RUN_FOLDER/raw.json" -o "$RUN_FOLDER/outliers.json" && \
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py -i "$RUN_FOLDER/outliers.json" -o "$RUN_FOLDER/video-analysis.json" -p instagram然后读取两个JSON文件并生成报告。
Engagement Metrics
互动数据指标
Engagement Score:
likes + (3 × comments) + (0.1 × views)Outlier Detection: Posts with engagement rate > mean + (threshold × std_dev)
Engagement Rate: (score / followers) × 100
互动得分:
点赞 + (3 × 评论) + (0.1 × 浏览量)异常值检测:互动率 > 平均值 + (阈值 × 标准差)
互动率:(得分 / 粉丝数) × 100