How thanh2004nguyen/facebook-group-scraper works
This small Playwright tool has a two-step workflow: the user logs in manually and saves browser state, then runs the scraper, which opens a configured Facebook group, loads and expands feed content, deduplicates extracted posts, and writes them to a text file. The sampled source supports these runtime relationships; the README documents configuration and expected output. Browser and Facebook behavior are represented at a high level.
Main entry points: main.py Group scraper · login_and_save_state.py Login setup
Components 9
Other components
- User
- Login setup
login_and_save_state.py - Saved session
- Group scraper
main.py - Feed loading
main.py - Post expansion
main.py - Extract and dedupe
main.py - Post output
Connections 11
- User → Login setup: runs login
README.md - Login setup → Facebook: opens login
login_and_save_state.py - User → Facebook: logs in
- Login setup → Saved session: saves state
login_and_save_state.py - User → Group scraper: runs scraper
README.md - Group scraper → Saved session: loads state
main.py - Group scraper → Facebook: opens group
main.py - Group scraper → Feed loading: scrolls feed
main.py - Group scraper → Post expansion: clicks buttons
main.py - Group scraper → Extract and dedupe: extracts posts
main.py - Group scraper → Post output: writes posts
main.py