Skip to content

encoreshao/webdata-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Scraper API

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.

Environment Management with Pipenv

Install from Pipfile

pipenv install

Start and run the script locally

export FLASK_ENV=development
export FLASK_APP=src/index.py

# now we just need to ask flask to run
flask run

Facebook API URL

About

Use Flask API to wrap Facebook data. Grab the wapper of Facebook public pages without an API key. (Currently working 2021)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages