-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
191 lines (177 loc) · 4.45 KB
/
settings.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
CHILE_BOUNDING_BOX = [
"-75.305615,-55.696134,-68.757684,-52.346932",
"-75.530436,-52.364096,-72.411036,-50.703610",
"-76.261107,-50.934418,-73.169809,-49.055888",
"-76.148696,-49.550645,-71.680365,-39.814612",
"-74.125301,-40.352148,-71.230722,-36.704065",
"-73.507041,-36.973960,-69.628868,-32.637924",
"-72.523447,-33.204080,-69.600765,-28.452409",
"-71.539852,-28.477114,-69.207608,-23.579633",
"-69.357915,-24.563140,-67.829796,-21.753553",
"-71.011290,-23.671439,-69.057301,-18.294311",
"-70.520535,-18.647303,-69.080728,-18.255537",
"-69.777898,-18.241144,-69.482358,-17.538024",
]
LANGUAGES = ['es', 'en']
# Where On Earth ID for Chile
CL_WOEID = '23424782'
GAZETTEER_PATH = 'data/chile_gazetteer.tsv'
TRACK_KEYWORDS = []
BUFFER_SIZE = 10000
# cuantos minutos recolectar trending topics
MINUTES_TT = 15
# minutos para recolectar noticias
MINUTES_NEWS = 55
# cuantos sets de keywords buscar para las noticias
NUM_KEYWORDS = 20
MAINSTREAM_NEWS = [
#'emol',
'24HorasTVN',
'lun',
'biobio',
't13',
'meganoticiascl',
'cooperativa',
'elmostrador',
'elmercurio_cl',
'latercera',
'chilevision',
'el_ciudadano',
'cnnchile',
'lacuarta',
'thecliniccl'
]
# top 100 comunas por poblacion
# la nº 100 tiene 42152 habitantes segun censo 2017
COMUNAS_100 = [
"Puente Alto",
"Maipú",
"Santiago",
"La Florida",
"Antofagasta",
"Viña del Mar",
"San Bernardo",
"Valparaíso",
"Las Condes",
"Temuco",
"Puerto Montt",
"Rancagua",
"Peñalolén",
"Pudahuel",
"Coquimbo",
"Concepción",
"Arica",
"La Serena",
"Talca",
"Quilicura",
"Ñuñoa",
# "Los Ángeles",
"Iquique",
"Chillán",
"La Pintana",
"Valdivia",
"Calama",
"El Bosque",
"Osorno",
"Recoleta",
"Copiapó",
"Talcahuano",
"Quilpué",
"Curicó",
"Renca",
"Estación Central",
"Colina",
"Providencia",
"Cerro Navia",
"San Pedro de la Paz",
"Punta Arenas",
"Conchalí",
"Villa Alemana",
"Melipilla",
"La Granja",
"Macul",
"Coronel",
"Ovalle",
"Quinta Normal",
"Alto Hospicio",
"San Miguel",
"Lo Barnechea",
"Lampa",
"Pedro Aguirre Cerda",
"Independencia",
"Lo Espejo",
"Huechuraba",
"Buin",
"Lo Prado",
"San Joaquín",
"Linares",
"La Reina",
"Hualpén",
# "San Antonio",
"Quillota",
"Peñaflor",
"La Cisterna",
"Chiguayante",
"Vitacura",
"San Ramón",
"Cerrillos",
"San Felipe",
"Padre Las Casas",
"Talagante",
"San Fernando",
"Paine",
"Los Andes",
"Padre Hurtado",
"Rengo",
"Coyhaique",
"Villarrica",
"Tomé",
"Angol",
"San Carlos",
"Machali",
"Vallenar",
"La Calera",
"Maule",
"Penco",
"San Vicente",
"Limache",
"Constitución",
"Molina",
"San Javier",
"Puerto Varas",
"Castro",
"Lota",
"San Clemente",
"Concón",
]
# este BB es muy amplio y captura partes de argentina y de bolivia
# lat, lon
# -55.902393, -77.752535 (SW)
# -16.935069, -67.381581 (NE)
# CHILE_BOUNDING_BOX = ["-77.752535,-55.902393", "-67.381581,-16.935069"]
# lon, lat (mas detallados)
# -55.696134, -75.305615, -52.346932, -68.757684
# -52.364096, -75.530436, -50.703610, -72.411036
# -50.934418, -76.261107, -49.055888, -73.169809
# -49.550645, -76.148696, -39.814612, -71.680365
# -40.352148, -74.125301, -36.704065, -71.230722
# -36.973960, -73.507041, -32.637924, -69.628868
# -33.204080, -72.523447, -28.452409, -69.600765
# -28.477114, -71.539852, -23.579633, -69.207608
# -24.563140, -69.357915, -21.753553, -67.829796
# -23.671439, -71.011290, -18.294311, -69.057301
# -18.647303, -70.520535, -18.255537, -69.080728
# -18.241144, -69.777898, -17.538024, -69.482358
# lat, lon (mismo anterior) (SW, NE)
# -75.305615, -55.696134, -68.757684, -52.346932,
# -75.530436, -52.364096, -72.411036, -50.703610,
# -76.261107, -50.934418, -73.169809, -49.055888,
# -76.148696, -49.550645, -71.680365, -39.814612,
# -74.125301, -40.352148, -71.230722, -36.704065,
# -73.507041, -36.973960, -69.628868, -32.637924,
# -72.523447, -33.204080, -69.600765, -28.452409,
# -71.539852, -28.477114, -69.207608, -23.579633,
# -69.357915, -24.563140, -67.829796, -21.753553,
# -71.011290, -23.671439, -69.057301, -18.294311,
# -70.520535, -18.647303, -69.080728, -18.255537,
# -69.777898, -18.241144, -69.482358, -17.538024,