forked from spaghetti-open-data/twitAntonio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js.development
141 lines (133 loc) · 3.98 KB
/
config.js.development
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// general configuration
var mongoose = require('mongoose');
var config = {
db_host: 'localhost',
db_name: 'twitAntonio',
db_collection: 'DEPS15',
db_collection_users: 'users',
db_collection_twitter: 'tweets',
db_collection_twitter11: 'tweets_v11_1',
db_debug: 1,
api_url: 'http://www.spaghettiopendata.org/convertCsvtoJson.php',
app_title: 'TwitAntonio',
app_description: '',
app_author: 'https://github.com/spaghetti-open-data/twitAntonio/graphs/contributors',
app_port: 3000,
app_secret: 'nirfnpv82958vj495vasdHGDASfaf293n9vfv',
app_debug: true,
base_path: '/',
twitter_auth: false,
twitter_harvest_search: '#twitantonio',
landing: false,
// Define Mep model
schema: new mongoose.Schema({
mep_country : [String],
mep_emailAddress : String,
mep_epFotoUrl : String,
mep_epPageUrl : String,
mep_facebookId : String,
mep_facebookPageUrl : String,
mep_faction : String,
mep_firstName : String,
mep_lastName : String,
mep_fullName : String,
mep_localParty : String,
mep_personalWebsite : String,
mep_twitterUrl : String,
mep_userId : String,
mep_additionalProperties : String,
mep_twitterUserName: String,
parlamento: String,
mep_follower_count: Number,
mep_last_tweet_time: Date,
mep_last_tweet : String,
mep_tweet_count: Number,
RiparteUrl: String,
}, {
autoIndex : true
}),
// Twitter Harvester Schema
tw_harvest_schema: {
created_at: Date,
entities: mongoose.Schema.Types.Mixed,
from_user: String,
from_user_id: Number,
from_user_id_str: String,
from_user_name: String,
geo: String,
id: Number,
id_str: String,
iso_language_code: String,
metadata: [String],
profile_image_url: String,
profile_image_url_https: String,
source: String,
text: String,
to_user: String,
to_user_id: Number,
to_user_id_str: String,
to_user_name: String
},
// Twitter Harvester Schema API 1.1
tw_harvest_schema_1_1: {
contributors : mongoose.Schema.Types.Mixed,
coordinates: mongoose.Schema.Types.Mixed,
created_at: Date,
current_user_retweet : mongoose.Schema.Types.Mixed,
entities: mongoose.Schema.Types.Mixed,
favorited : Boolean,
geo : mongoose.Schema.Types.Mixed,
id: Number,
id_str : String,
in_reply_to_screen_name : String,
in_reply_to_status_id : Number,
in_reply_to_status_id_str: String,
in_reply_to_user_id : Number,
in_reply_to_user_id_str : String,
place : mongoose.Schema.Types.Mixed,
possibly_sensitive : Boolean,
scopes : mongoose.Schema.Types.Mixed,
retweet_count : Number,
retweeted : Boolean,
source: String,
text : String,
truncated : Boolean,
user : mongoose.Schema.Types.Mixed,
withheld_copyright : Boolean,
withheld_in_countries : mongoose.Schema.Types.Mixed,
withheld_scope : String,
},
factionNames: {
'c': "Centro",
'cs': "Centro Sinistra",
'cd': "Centro Destra",
's': "Sinistra",
'5s': "M5S",
'fare': "FARE"
},
parlamento: {"camera": "Camera",
"senato": "Senato"},
partiti: {"sel": "SEL",
"partito democratico": "PD",
"movimento 5 stelle": "Movimento 5 Stelle",
"Lista Monti": "Lista Monti",
"Partito Democratico": "Partito Democratico",
"Rivoluzione Civile": "Rivoluzione Civile",
"udc": "UDC",
"Fermare Il Declino": "Fare Per Fermare Il Declino",
"pdl": "PDL",
"Fratelli D'italia": "Fratelli D'italia",
"Lega Nord": "Lega Nord",
"fli": "FLI",
"Centro Democratico": "Centro Democratico",
},
sorting: {
"name": "Nome",
"party": "Partito",
"country": "Circoscrizione",
"tweets": "Numero di Tweet",
"followers": "Numero di Follower",
//"lastTweet": "Data Ultimo Tweet"
}
}
module.exports = config;