forked from omarsar/twitter_crawler_by_keywords
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
68 lines (65 loc) · 1.1 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# mongo configurations
MONGODB = dict(
hostname = "localhost",
port = 27017,
db = 'tweets',
collection = 'test'
)
# Create twitter app to access Twitter Streaming API (https://apps.twitter.com)
TWITTER = dict(
consumer_key = '',
consumer_secret = '',
access_token = '',
access_secret = ''
)
# Elasticsearch configurations
ELASTICSEARCH = dict(
hostname = "localhost:9200",
new_hostname = "localhost:9200",
index = "tweets_en",
type = "doc_en"
)
# Emotion hashtags keywords (change these to your own keywords, as many as you can)
KEYWORDS = dict( joy = [
"#accomplished",
"#alive",
"#amazing",
"#awesome"],
trust = [
"#acceptance",
"#admiration",
"#amused",
"#appreciated"],
fear = [
"#afraid",
"#anxious",
"#apprehension"],
surprise = [
"#amazed",
"#amazement",
"#crazy",
"#different"],
sadness = [
"#alone",
"#ashamed",
"#awful"],
disgust = [
"#bitter",
"#blah",
"#bored"
"#boredom"],
anger = [
"#aggravated",
"#aggressiveness",
"#anger",
"#anger2",
"#angry"],
anticipation = [
"#adventurous",
"#anticipation",
"#curious"],
other = [
"#asleep",
"#awake",
"#brave",
"#busy"])