Skip to content

This python code extracts Facebook comments and posts using graph API and saves it in csv file.

Notifications You must be signed in to change notification settings

sriniskanda/Extracts-comments-and-posts-from-facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Extracts-comments-and-posts-from-facebook

This python code extracts Facebook comments and posts using graph API and saves it in csv file. Run this code on command line from commnad line give following input arguments in order first argument give "User name"
second argument give "number of days" (How many days you want to extract comments and posts) third argument give APP_SECRET you will get from facebook developer account fourth argument give APP_ID which also you will get from facebook developer account code output will be csv file with parameters in order are POST ID, COMMENT ID, USERNAME, COMMENT (outFile.csv)

To get APP_SECRET snd APP_ID register your app in https://developers.facebook.com/ after registering app APP_SCRET and APP_ID is generated.

How to run this code:

cmd or terminal:

python facebookScrap.py user_name days APP_SECRET APP_ID

example:

python facebookScrap.py xxx 7 APP_SECRET APP_ID

About

This python code extracts Facebook comments and posts using graph API and saves it in csv file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages