Giter Site home page Giter Site logo

lorenzomonti / facebook_page_group_comments Goto Github PK

View Code? Open in Web Editor NEW
46.0 4.0 15.0 7 KB

Facebook Page and Group's Post Scraper is a script for gathering data using Facebook's Graph API

License: MIT License

Python 100.00%
facebook-graph-api facebook-scraper python3 facebook-page json

facebook_page_group_comments's Introduction

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/

facebook_page_group_comments's People

Contributors

lorenzomonti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

facebook_page_group_comments's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.