yusriltakeuchi / fbscrape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FBScraper

This is a simple tools to scrape facebook fanspage post information and save the data to existing database without any APIKEY.

Installation

  1. git clone https://github.com/yusriltakeuchi/fbscrape.git
  2. Install requirements library
pip3 install -r requirements.txt
  1. Create database with name 'fbscrape' and setup your database credentials in file config/database.json:
{
    "host": "localhost",
    "user": "root",
    "password": "",
    "database": "fbscrape"
}
  1. Write your fanspage target to scrape in file config/targets.json:
{
  "targets": [
    {
      "username": "Jokowi",
      "count": 10
    },
    {
      "username": "gojekindonesia",
      "count": 10
    }
  ]
}

count define how much data you want to collect from the fanspage

  1. Run the python script using
python3 fbscrape.py

About


Languages

Language:Python 100.0%