Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LorenzoMonti/facebook_page_group_comments
Facebook Page and Group's Post Scraper is a script for gathering data using Facebook's Graph API
https://github.com/LorenzoMonti/facebook_page_group_comments
facebook-graph-api facebook-page facebook-scraper json python3
Last synced: about 9 hours ago
JSON representation
Facebook Page and Group's Post Scraper is a script for gathering data using Facebook's Graph API
- Host: GitHub
- URL: https://github.com/LorenzoMonti/facebook_page_group_comments
- Owner: LorenzoMonti
- License: mit
- Created: 2018-05-28T10:59:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T19:30:18.000Z (over 4 years ago)
- Last Synced: 2024-08-02T13:28:55.129Z (3 months ago)
- Topics: facebook-graph-api, facebook-page, facebook-scraper, json, python3
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 47
- Watchers: 4
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facebook Page and Group's Post Scraper
This is a simple script to gather all comments of a Facebook Page or Group.
The script outputs the posts in Json file format.## Initial setup
1. Access to https://developers.facebook.com/ and create a new App.
2. Make sure to have the following permissions active: publish_to_groups, pages_read_user_content, pages_manage_engagement, pages_manage_posts, Page Public Content Access Feature.
3. Create a folder named *posts* on the root directory of the repository.
4. Add *app_id* and *app_secret* in *scrape_post_and_comment.py* script.
5. Add *page_id*, you can find this in the section of the url in page or group searched (https://www.facebook.com/!!THIS PART!!/).
6. Lauch script and have fun! :) .## Usage
Once data are scraped, you can find Json files in */posts/* folder.
## Test
You can test every API here: https://developers.facebook.com/tools/explorer/