This is a simple script to gather all comments of a Facebook Page or Group. The script outputs the postsREA in Json file format.
- Access to https://developers.facebook.com/ and create a new App.
- Add app_id and app_secret in scrape_post_and_comment.py script.
- Add page_id, you can find this in the part of url in page or group searched (https://www.facebook.com/!!THIS PART!!/).
- Lauch script and have fun! :) .
Once data are scraped, you can find Json files in /posts/ folder.