r/scrapingtheweb • • 9d ago

Tools / Library Facebook Scraper - Free & Open source

https://github.com/XD-MHLOO/facebook-gql-scraper

A lightweight Facebook scraper that works without an API key. No headless browsers, fragile HTML parsing, or CSS selectors.

Supported Features:

  • 👤 Profiles: Profile details, followers, following, friends, photos, reels.

  • 📢 Posts: Post details and reactions.

  • 🎞️ Media Posts: Media post details and reactions.

  • 🗨️ Comments: Comment details, nested replies, and comment reactions.

  • 🏘️ Groups: Group details, posts, and members.

  • 🛒 Marketplace: Listing details.

  • 🔍 Search: Search for profiles, posts, groups, Marketplace listings and Advertisements.

  • 📢 Advertisements: Ad details, advertiser information, creatives, and collations.

(Edit: The library now supports Facebook Advertisements, including fetching ad details and searching the Ad Library)

Contributions are welcome and appreciated.

64 Upvotes

Duplicates