This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
sample.conf
66 lines (62 loc) · 2.12 KB
/
sample.conf
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
#####
# avivore config file
###
#####
# database settings
# dbpath: <path to sqlite3 db file>
###
[database]
dbpath: avivore.db
#####
# twitter authentication settings
# Please provide consumer key and secret.
###
[twitter_auth]
consumer_key: 'your_consumer_key_here'
consumer_secret: 'your_consumer_secret_here'
credentials_file: '.avivore.cred'
#####
# content type definition
# Avivore searches tweets for specific objects
# like ip addresses, phone numbers, ... . The
# following section defines these objects. If a single tweet
# contains multiple items, the priority of the extracted
# item corresponds to the order of its definition (first type
# definition has highest priority). Every object has a unique
# id and a python regex. Format of the definition is:
#
# id: 'regex'
###
[twitter_search_objects]
# ip addresses
0: '\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b'
# blackberry pin numbers
1: '\b[a-fA-F0-9]{8}\b'
# phone numbers
2: '(\(?\d{3}\)?[-\.\s]??\d{3}[-\.\s]??\d{4}|\(\d{3}\)\s*\d{3}[-\.\s]??\d{4}|\d{3}[-\.\s]??\d{4})'
#####
# twitter search definitions
# Tracking keyword:
# String that contains all keywords that are tracked using
# the Twitter streaming API. Separate keywords by ','. Use
# spaces to create tracking phrases. For more info see:
# https://dev.twitter.com/streaming/overview/request-parameters#track
#
# Search terms:
# Search terms are enclosed in '\'' and separated by ','.
# They are added to the variable 'csv_search_term'.
#
# Search interval:
# Specifies time interval (in seconds) to wait between to
# consecutive search queries. You'll want to set this to 30
# seconds or higher to avoid hitting Twitter's Streaming API
# rate limits!
###
[twitter_search]
# Used to filter tweets from Twitter Streaming API
stream_tracking_keyword: 'ip,bbm,bb pin,bb,bbm,pin,call,phone,text,number'
# Used to issue separate search queries for each term
csv_search_term: 'ip server', 'ip address', 'blackberry pin', 'bb pin',
'bbm pin', 'text me', 'call me', 'phone me', 'new phone', 'new number'
# You'll want to set this to 30 seconds or higher!
interval: 120