To reproduce results:
- Clone the repo and cd into it
- Create python virtual enviroment by running
python -m venv env
and activate it by runningsource env/Scripts/activate
if Windows orsource env/bin/activate
if Mac - Install the python requirements by running
pip install -r requirements.txt
- Create a file called
.env
and writeACCESS_TOKEN={token}
on it wheretoken
is the access token for the app (ask Raul to if you don't have it) - Execute
python test.py
To get posts from other pages:
- cd into this directory
- git clone https://github.com/kevinzg/facebook-scraper/
- pip install facebook-scraper