leamsigc/shortsgenerator/facebook-research-scrape
Claude Code and agent skill by leamsigc/shortsgenerator
- community
Checking that the SKILL.md file is still in the repository.
Scrape state — runs the Facebook scraper via Chrome DevTools Protocol. Extracts page-level analytics (followers, engagement), top video posts, engagement metrics, and hook screenshots. Also scrapes competitor pages, computes engagement ratios, and saves a historical snapshot for trend comparison across analysis rounds.
Install
npx vskill@latest install leamsigc/shortsgenerator/facebook-research-scrapeSKILL.md
Facebook Research — Scrape State (v3)
Scrapes a Facebook page and its competitors. Requires Chrome running with --remote-debugging-port=9222 and Facebook logged in.
Before running
Ensure:
- Chrome is open with
--remote-debugging-port=9222flag - Facebook is logged in (tab stays open)
- Config exists at
.fb-research/projects/<project-name>/config.json(from setup)
Run
Important: Keep the Facebook tab in the foreground (visible, not minimized) while this runs. Chrome throttles background tabs and screenshots will fail.
What the script does
- Navigates to the page (
config.pageUrl), extracts page stats (followers, likes, category, description) - Opens the Videos tab, scrolls to load posts, collects video post URLs + estimated views
- Visits each top post and extracts: views, likes, comments, shares, caption, og:title
- Computes engagement ratios + composite score and ranks the top 5
- Scrapes each competitor (config.competitors) the same way →
competitors/<name>/raw-posts.json - Saves
page-analytics.json,raw-posts.json, and appends a snapshot topage-analytics-history.json - Computes the trend vs the previous snapshot (up/down/stable per metric)
Important note on Facebook's DOM
Facebook uses randomized class names. The script always uses aria-label, role, text matching, and [href*="..."] partial URL selectors — never hardcode class names.
Manual fallback (Chrome DevTools CLI)
If the script gets insufficient data, scrape manually:
chrome-devtools navigate_page --url "https://www.facebook.com/<page_name>/"- Scroll + extract page stats / video links via
evaluate_script - Navigate into each post for metrics + take hook screenshots
- Save
page-analytics.json/raw-posts.jsonwith the same schema
Or use WebSearch fallback: websearch "site:facebook.com <page_name> best performing videos 2026" and note data came from search.
Output
Next step: skill facebook-research-analyze
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/facebook-research-scrape/SKILL.md
Popularity
- Repository stars
- 348
- Repository forks
- 75
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leamsigc/shortsgenerator/facebook-research-scrape)