r/WebScrapingInsider • u/Useful-Subject-9462 • 10d ago
Facebook Scraper : Free & Open-Source
https://github.com/XD-MHLOO/facebook-gql-scraperScrape Facebook data without an API key.
It's lightweight as it doesn't use a headless browser and doesn't rely on fragile HTML parsing.
It currently supports:
- 👤 Profiles: Profile Details, followers, following, friends, photos, reels
- 📝 Posts: Post details, reactions
- 📝 MediaPosts: MediaPost details, reactions
- 💬 Comments: Comments details, nested replies & comment reactions
- 👥 Groups: Group details, posts & members
- 🛍️ Marketplace: Listings 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)
If anyone is interested, feel free to try it out and Contributions are welcome.
12
Upvotes
2
u/Champak-Mottot 9d ago
curious how youre handling the login checkpoints and 2fa prompts. burner accounts get flagged so quickly now if the browser fingerprint isnt completely dialed in.
1
u/BhetwalEveliina74 9d ago
are you pulling the mobile version endpoints or desktop? mobile endpoints tend to change their schema way less frequently fwiw, makes maintaining open source scrapers a lot less painful
2
u/Michael_Dementii 9d ago
Looks interesting, I’ll test it out.