Extract complete ad copy, analyze emotional triggers, and visualize competitive strategies
- β Complete Ad Copy Extraction - 967+ words captured with 9 extraction strategies
- β Emotional Intelligence Analysis - Detect fear, greed, urgency, social proof triggers
- β Strategic Positioning Detection - Identify premium, value, innovation positioning
- β Multi-Platform Support - Facebook, Instagram, Messenger, Audience Network
- β Anti-Detection System - Stealth mode, human behavior simulation, session management
- β Media Download - High-quality images and video thumbnails
- β Bulk Processing - Process multiple competitors efficiently
- π Interactive Visualizations - Charts, timelines, and heatmaps
- π Advanced Filtering - By date, platform, triggers, advertiser
- π Competitive Analysis - Side-by-side comparisons
- π‘ AI-Powered Insights - Pattern detection and recommendations
- π± Responsive Design - Works on all devices
- πΎ Export Options - PDF reports, CSV data, JSON backups
- π Dark Mode - Easy on the eyes
View the live demo at: https://YOUR_USERNAME.github.io/facebook-ads-intelligence/demo.html
Screenshot coming soon - dashboard shows emotional trigger analysis, timeline charts, and ad gallery
- Node.js 18+
- Chrome/Chromium browser
- 2GB+ RAM recommended
# Clone the repository
git clone https://github.com/AnsKM/facebook-ads-intelligence.git
cd facebook-ads-intelligence
# Install dependencies
cd scraper
npm install
# Set up environment
cp .env.example .env
# Edit .env with your preferences
# Run the scraper (safe mode)
npm run start:safe -- 105168211848225
# Launch the web dashboard
cd ../webapp
# Option 1: Auto-detect server
./start-server.sh
# Option 2: Node.js (no dependencies)
node server.js
# Option 3: Python
python3 server.py
# Option 4: Docker
docker-compose up
# Visit http://localhost:8080The webapp includes multiple server options with zero dependencies:
- Node.js Server (
server.js) - Built-in modules only - Python Server (
server.py) - Standard library only - Docker Container - Production-ready Nginx
- Auto-Selector (
start-server.sh) - Picks best option
See webapp/README.md for detailed server documentation.
# Basic usage - single competitor
node scraper/src/index.js <PAGE_ID>
# With URL
node scraper/src/index.js "https://www.facebook.com/ads/library/?view_all_page_id=123456"
# Test mode (10 ads max)
npm run start:test -- <PAGE_ID>
# Production mode with all safety features
npm run start:safe -- <PAGE_ID>- Visit competitor's Facebook page
- View Page Transparency β See All
- Go to Ad Library
- The URL contains
view_all_page_id=XXXXXXXXX
- Upload Data: Drag & drop JSON export or use file picker
- Explore: Browse ads with filters and search
- Analyze: View insights and competitive intelligence
- Export: Generate reports in PDF/CSV format
| Category | Data Points | Intelligence Value |
|---|---|---|
| Copy | Headlines, body text, CTAs | Messaging strategy |
| Emotional | Fear, greed, urgency triggers | Psychological tactics |
| Strategic | Positioning, objectives | Market approach |
| Creative | Images, videos, formats | Visual strategy |
| Performance | Runtime, platforms | Campaign insights |
| Funnel | Landing pages, offers | Conversion tactics |
Triggers Analyzed:
- Fear: "miss out", "mistake", "fail"
- Greed: "save", "profit", "free"
- Trust: "proven", "certified", "guaranteed"
- Urgency: "limited", "expires", "now"
- Social Proof: "million users", "everyone"- 3-8 second delays between requests
- Maximum 30 requests per minute
- Human-like scrolling and interaction
- Playwright with stealth plugin
- Browser fingerprint randomization
- Session persistence
- Natural browsing patterns
- β Competitive research
- β Market analysis
- β Creative inspiration
- β Copying ads directly
- β Violating Terms of Service
- β Excessive scraping
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β β β β
β Facebook Ads ββββββΆβ Scraper Engine ββββββΆβ JSON Export β
β Library β β (Playwright) β β β
βββββββββββββββββββ ββββββββββββββββββββ ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β β β β
β Web Dashboard βββββββ Analysis Engine βββββββ Data Upload β
β (Browser) β β (JavaScript) β β β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
- Success Rate: 95%+ data extraction
- Speed: ~2-3 seconds per ad
- Accuracy: 85% intelligence score
- Safety: 0 bans with proper usage
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
# Install development dependencies
npm install --save-dev
# Run tests
npm test
# Lint code
npm run lint
# Build for production
npm run buildThis project is licensed under the MIT License - see the LICENSE file for details.
- Crawlee - Web scraping framework
- Playwright - Browser automation
- Chart.js - Data visualization
- Tailwind CSS - Styling framework
This tool is for educational and research purposes only. Users are responsible for complying with Facebook's Terms of Service and applicable laws. The authors are not responsible for any misuse of this software.
- π§ Email: support@example.com
- π¬ Discord: Join our community
- π Documentation: Full docs
- π Issues: Report bugs
Made with β€οΈ for marketers and researchers
Star β this repo if you find it useful!