-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.py
53 lines (50 loc) · 1.81 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
#---------------------------------- Graph Var ---------------------------------------
# Graph URL check version
graph_url = "https://graph.facebook.com/v2.6/"
#Access Token = App ID + App Secret
accesstoken=""+"|"+""
#---------------------------------- MySQL Var ---------------------------------------
# MySQL Server IP
host='127.0.0.1'
# Database UserName
username='root'
# Database Password
password=''
# Database Name
DBName='fb_data'
#---------------------------------- Pages Var ---------------------------------------
# Add the Pages ID
#list_pages = ["95969849939","95495949393"]
list_pages = ["63811549237"]
#Posts Details want to collect
posts_fields = "message,likes.limit(1).summary(true),from,created_time"
# Number of posts you want to collect from signal page , min=25
fb_post_max = 3
# Enable Scrape Page
scrape_page = 1
#---------------------------------- Groups Var --------------------------------------
# Add the Groups ID
#list_groups = ["9509465696t5534","56777754433"]
list_groups = ["1474176602870235"]
#Feeds Details want to collect
feeds_fields = "message,likes.limit(1).summary(true),from,created_time"
# Number of feeds you want to collect from signal group . min=25
fb_feed_max = 3
# Enable Scrape Group
scrape_group = 1
#---------------------------------- Pages & Groups Var ------------------------------
#Comments Details want to collect
comments_fields = "message,likes.limit(1).summary(true),from,created_time"
# tha max number of comments you want to collect from signal post
fb_comment_max = 3
# tha max number of Reply you want to collect from signal comment
fb_reply_max = 3
# tha max number of like you want to collect from signal post,comment,reply
fb_like_max = 3
# Enable Scrape Comment
scrape_comment = 1
# Enable Scrape Reply
scrape_reply = 1
# Enable Scrape like
scrape_like = 1