This script can scrape posts from a Facebook's group. It save a CSV file. It requires Python 3, Selenium Webdriver and Chrome browser.
You'll need to have python, pip, and Google Chrome installed to use this tool. Once that's all set up:
- Clone this repository
cdinto the cloned folderpip install -r requeriments.txt
Fill your email, password of Facebook's profile and Facebook's group ID.
[credentials]
email=foo@bar.com
password=secret
[group]
id=675848676543890
cd app- Run
python facebook_post_scraper.py -c config.txt - Optionally you can pass the second parameter which limits the number of posts:
python facebook_post_scraper.py -c config.txt -l 40 - It will open a browser window and will fill your username & password automatically.
- You should see your Facebook's group page scroll to the bottom.
- A CSV file will be created with the data (posts_YYYY-MM-DD_HHMM.csv)