-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py.ist
97 lines (85 loc) · 2.38 KB
/
conf.py.ist
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# coding: utf-8
import logging
IS_SPAM = 'isspamer'
NUM_WORKERS = 2 #according CPU number
SLEEP = 300
LOG_FILE = './MQspam.log'
LOG_LEVEL = logging.WARN # .INFO, .WARN, .ERROR, .DEBUG
MaxQlen = 10
Fan_queue = {
'server': 'xxx.xx.xx.xxx:8180',
#http://wiki.internal.cicdata.com/confluence/pages/viewpage.action?pageId=17203367
'works': (
('COOP_INNER_SPAMER_%s', 'COOP_INNER_DB_%s'),
('COOP_OUTER_SPAMER_%s', 'COOP_OUTER_DB_%s'),
),
'serviceId': 'BIZ06',
}
Retweet_queue = {
'server': 'xxx.xx.xx.xxx:8080',
'task':{
'in': 'COOP_OUTER_DISPATCH_BIZ12',
'out':'COOP_OUTER_DISPATCH_CAL',
},
'work':{
'in': 'COOP_CAL_POST_SERVICES_%s', #serviceId
'out':'COOP_CAL_ZOMBIE_SERVICES_%s', #serviceId
},
'mem_cache':{
'servers':(
'xxx.xx.xx.xxx:11212',
'xxx.xx.xx.xxx:11213',
),
'progress':{
'key':'COOP_CAL_Post_Progress_%s', #serviceId
'value': '\x03\x00\x00\x00<' #60
}
}
}
MailInfo = dict(
From = "[email protected]",
Passwd = "spam_cic_op",
Server = "smtp.gmail.com:587",
Tos = ["[email protected]",]
)
DBtask_type = {
'sina':13,
'tencent':27
}
#http://wiki.internal.cicdata.com/confluence/pages/viewpage.action?pageId=20218824
Media_type = {
'sina':[1,3],
'tencent':2,
'weixin':5,
'bbs':50,
'news':60,
'search':70,
'e-commerce':80,
}
MQ_URL = 'http://%s/fqservice/service/%s?wsdl'
MQ_SERVICES = {
'in': 'wsFileMQOutputService',
'out': 'wsFileMQInputService',
'del': 'wsFileMQRemoveService',
'err': 'wsFileMQInputService',
}
ERROR_SUF = "_ERROR"
"""
微博json:http://wiki.internal.cicdata.com/confluence/pages/viewpage.action?pageId=20218826
粉丝json:http://wiki.internal.cicdata.com/confluence/pages/viewpage.action?pageId=20218833
评论json:http://wiki.internal.cicdata.com/confluence/pages/viewpage.action?pageId=20218966
"""
USER_ID = 'userId' #str
Features=[
'beFollowCount', #bi_followers_count
'numOfTweets',
'numOfFriends',
'createdAt', #2010-09-01
'numOfFans',
'favouritesCount',
'verifiedTag', #replace tag verified for cooperator use
'verType',
'gender', #f:2,
'description',
]
Gender_dic={2:0, 1:1}