-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathExecution Guideline
22 lines (18 loc) · 1.15 KB
/
Execution Guideline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Script Execution Guidelines
Version 1:
Token : Use the graph access token generated using your Facebook account
Usage : python Facebook_scraper_insight.py techinsider YYYY-MM-DD
Update the below parameters in the program before execution
token_input = 'Paste your access token string here from the Graph API'
target_page_input = 'Enter the facebook page name e.g.(techinsider)'
date_since_input = 'Enter the date from which data is required (YYYY-MM-DD)'
Version 2:
Token : Use the page specific access token generated by selecting required page
Usage : python Facebook_scraper_insight.py techinsider YYYY-MM-DD
Update the below parameters in the program before execution
token_input = 'Paste your access token string here from the Graph API'
target_page_input = 'Enter the facebook page name'
date_since_input = 'Enter the date from which data is required'
For Python 2.7 version Note changes the below code:
#f = open(json_path, "w") # This code is for python 2.7
f = open(json_path, "w", encoding='utf-8') #In Python 3, we need to specify encoding when open a file