This is a simple tools to scrape facebook fanspage post information and save the data to existing database without any APIKEY.
- git clone https://github.com/yusriltakeuchi/fbscrape.git
- Install requirements library
pip3 install -r requirements.txt
- Create database with name 'fbscrape' and setup your database credentials in file config/database.json:
{
"host": "localhost",
"user": "root",
"password": "",
"database": "fbscrape"
}
- 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
- Run the python script using
python3 fbscrape.py