Skip to content

Pulls Facebook Data and stores it in a SQLite database This program can pull Albums & Photos and the Facebook Page's Timeline feed.

Notifications You must be signed in to change notification settings

amrutha-rajiv/SandysPetsFBAnalysis

Repository files navigation

SandysPetsFBAnalysis

FBtoSQLite.py - Pulls Facebook Data and stores it in a SQLite database This program can pull Albums & Photos and the Facebook Page's Timeline feed.

To collect the page's Timeline Feed, call the getPageFeed function getPageFeed(page_name,DB_NAME)

To collect the page's Album & photo information, call insertAlbumsAndPhotosInDB. insertAlbumsAndPhotosInDB(page_name,DB_NAME)

page_name for the facebook page with URL https://www.facebook.com/sandyspets would be sandyspets

DB_NAME is the name of your SQLite Database that you want to store the Data in.

If the Database tables do not exist, FBtSQLite will create the tables.

Note: The Facebook Access Token is valid only for two hours, if the program stops executing after 2 hours, it is likely that the access token has expired. Restarting the program will resume pulling of data.

Requirements: python2.7 sqlite3 pip

To install additional requirements please run the command pip install -r requirements.txt

About

Pulls Facebook Data and stores it in a SQLite database This program can pull Albums & Photos and the Facebook Page's Timeline feed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages