Discover and scrape public Facebook pages and groups by location and category with browser simulation and export data in JSON or CSV formats.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install facebook-scraper或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install facebook-scraper⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/facebook-scraper/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
> Part of ScrapeClaw — a suite of production-ready, agentic social media scrapers for Instagram, YouTube, X/Twitter, and Facebook built with Python & Playwright, no API keys required.
A browser-based Facebook page and group discovery and scraping tool.
---
name: facebook-scraper
description: Discover and scrape Facebook pages and public groups from your browser.
emoji: 📘
version: 1.0.0
author: influenza
tags:
- facebook
- scraping
- social-media
- page-discovery
- group-discovery
- business-pages
metadata:
clawdbot:
requires:
bins:
- python3
- chromium
config:
stateDirs:
- data/output
- data/queue
- thumbnails
outputFormats:
- json
- csv
---
This skill provides a two-phase Facebook scraping system:
facebook.com as the site to searchFor OpenClaw agent integration, the skill provides JSON output:
# Discover Facebook pages (returns JSON)
discover --location "Miami" --category "restaurant" --type page --output json
# Discover Facebook groups (returns JSON)
discover --location "New York" --category "fitness" --type group --output json
# Scrape single page (returns JSON)
scrape --page-name examplebusiness --output json
# Scrape single group (returns JSON)
scrape --page-name examplegroup --type group --output json
{
"page_name": "example_business",
"display_name": "Example Business",
"entity_type": "page",
"category": "Restaurant",
"subcategory": "Italian Restaurant",
"about": "Family-owned Italian restaurant since 1985",
"followers": 45000,
"page_likes": 42000,
"location": "Miami, FL",
"address": "123 Main St, Miami, FL 33101",
"phone": "+1-555-0123",
"email": "[email protected]",
"website": "https://example.com",
"hours": "Mon-Sat 11AM-10PM",
"is_verified": false,
"page_tier": "mid",
"profile_pic_local": "thumbnails/example_business/profile_abc123.jpg",
"cover_photo_local": "thumbnails/example_business/cover_def456.jpg",
"recent_posts": [
{"post_url": "https://facebook.com/example_business/posts/123", "reactions": 320, "comments": 45, "shares": 12}
],
"scrape_timestamp": "2026-02-20T14:30:00"
}
{
"page_name": "example_group",
"display_name": "Miami Fitness Community",
"entity_type": "group",
"about": "A community for fitness enthusiasts in Miami",
"members": 15000,
"privacy": "Public",
"posts_per_day": 25,
"location": "Miami",
"page_tier": "mid",
"profile_pic_local": "thumbnails/example_group/profile_abc123.jpg",
"cover_photo_local": "thumbnails/example_group/cover_def456.jpg",
"scrape_timestamp": "2026-02-20T14:30:00"
}
| Tier | Likes/Members Range | |-------|---------------------| | nano | < 1,000 | | micro | 1,000 - 10,000 | | mid | 10,000 - 100,000 | | macro | 100,000 - 1M | | mega | > 1,000,000 |
data/queue/{location}_{category}_{type}_{timestamp}.jsondata/output/{page_name}.jsonthumbnails/{page_name}/profile_.jpg, thumbnails/{page_name}/cover_.jpgdata/export_{timestamp}.json, data/export_{timestamp}.csvEdit config/scraper_config.json:
{
"google_search": {
"enabled": true,
"api_key": "",
"search_engine_id": "",
"queries_per_location": 3
},
"scraper": {
"headless": false,
"min_likes": 1000,
"download_thumbnails": true,
"max_thumbnails": 6
},
"cities": ["New York", "Los Angeles", "Miami", "Chicago"],
"categories": ["restaurant", "retail", "fitness", "real-estate", "healthcare", "beauty"]
}
The scraper automatically filters out:
---
Running a scraper at scale without a residential proxy will get your IP blocked fast. Here's why proxies are essential for long-running scrapes:
| Advantage | Description | |-----------|-------------| | Avoid IP Bans | Residential IPs look like real household users, not data-center bots. Facebook is far less likely to flag them. | | Automatic IP Rotation | Each request (or session) gets a fresh IP, so rate-limits never stack up on one address. | | Geo-Targeting | Route traffic through a specific country/city so scraped content matches the target audience's locale. | | Sticky Sessions | Keep the same IP for a configurable window (e.g. 10 min) — critical for maintaining a Facebook login session. | | Higher Success Rate | Rotating residential IPs deliver 95%+ success rates compared to ~30% with data-center proxies on Facebook. | | Long-Running Scrapes | Scrape thousands of pages/groups over hours or days without interruption. | | Concurrent Scraping | Run multiple browser instances across different IPs simultaneously. |
We have affiliate partnerships with top residential proxy providers. Using these links supports continued development of this skill:
| Provider | Best For | Sign Up | |----------|----------|---------| | Bright Data | World's largest residential network, 72M+ IPs, enterprise-grade | 👉 Sign Up for Bright Data | | IProyal | Premium residential pool, pay-as-you-go, 195+ countries | 👉 Sign Up for IProyal | | Storm Proxies | Fast & reliable residential IPs, developer-friendly API | 👉 Sign Up for Storm Proxies | | NetNut | ISP-grade residential network, 52M+ IPs, direct connectivity | 👉 Sign Up for NetNut |
Sign up with any provider above, then grab:
...
安装 Facebook Scraper 后,可以对 AI 说这些话来触发它
Help me get started with Facebook Scraper
Explains what Facebook Scraper does, walks through the setup, and runs a quick demo based on your current project
Use Facebook Scraper to discover and scrape public Facebook pages and groups by location an...
Invokes Facebook Scraper with the right parameters and returns the result directly in the conversation
What can I do with Facebook Scraper in my data & analytics workflow?
Lists the top use cases for Facebook Scraper, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/facebook-scraper/ 目录(个人级,所有项目可用),或 .claude/skills/facebook-scraper/(项目级)。重启 AI 客户端后,用 /facebook-scraper 主动调用,或让 AI 根据上下文自动发现并使用。
Facebook Scraper 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Facebook Scraper 可免费安装使用。请查阅仓库了解许可证信息。
Discover and scrape public Facebook pages and groups by location and category with browser simulation and export data in JSON or CSV formats.
Facebook Scraper 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Facebook Scraper
Identifies repetitive steps in your workflow and sets up Facebook Scraper to handle them automatically