Facebook Scraper
Use Flask API to wrap Facebook data. Grab the wapper of Facebook public pages without an API key. (Currently working 2021)
Setup
Before using this scraper API, please export the cookies of your Facebook account and save them to /tmp/cookies.text
Cookies
The path to a file containing cookies in Netscape or JSON format. You can extract cookies from your browser after logging into Facebook with an extension like EditThisCookie (Chrome) or Cookie Quick Manager (Firefox). Make sure that you include both the c_user cookie and the xs cookie, you will get an InvalidCookies exception if you don't.
export FLASK_ENV=development
export FLASK_APP=src/index.py
# now we just need to ask flask to run
flask run
Run script locally
- Get Facebook Organization profile
- Get Facebook person profile