forked from CovidTrackerFr/vitemadose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
403 lines (403 loc) · 12.5 KB
/
config.json
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
{
"data-auto": {
"base_url": "https://raw.githubusercontent.com/CovidTrackerFr/vitemadose/data-auto/"
},
"inputs": {
"centers_gouv": "https://www.data.gouv.fr/fr/datasets/r/5cb21a85-b0b0-4a65-a249-806a040ec372",
"rdv_gouv": "https://www.data.gouv.fr/fr/datasets/r/b7bd49cd-904c-4c5d-b60f-018b51df9b0e",
"departements": "data/input/departements-france.csv",
"blocklist": "data/input/centers_blocklist.json",
"postalcode_to_insee": "data/input/codepostal_to_insee.json",
"cedex_to_insee": "data/input/cedex_to_insee.json",
"insee_to_postalcode_and_dep": "data/input/insee_to_codepostal_and_code_departement.json",
"last_scans": "https://vitemadose.gitlab.io/vitemadose/info_centres.json",
"dep_pop": "https://raw.githubusercontent.com/rozierguillaume/covid-19/master/data/france/dep-pop.csv",
"map": "data/input/map.svg"
},
"outputs": {
"stats": {
"data-auto": "https://vitemadose.gitlab.io/vitemadose/",
"chronodoses": "data/output/stats_chronodoses.json",
"by_date": "stats_by_date.json",
"by_date_dep": "stats_by_date_dep.json",
"by_vaccine_type": "data/output/stats_by_vaccine.json",
"center_types": "stats_center_types.json",
"global": "stats.json"
},
"last_scans": "data/output/info_centres.json"
},
"scrape": {
"pool_size": 50,
"blocked_calls_threshold": 10
},
"vaccines": {
"Pfizer-BioNTech": ["pfizer", "biontech"],
"Moderna": ["moderna"],
"ARNm": ["arn", "arnm", "arn-m", "arn m"],
"AstraZeneca": ["astrazeneca", "astra-zeneca", "astra zeneca", "az"],
"Janssen": [
"janssen",
"jansen",
"jansenn",
"jannsen",
"jenssen",
"jensen",
"jonson",
"johnson",
"johnnson",
"j&j"
]
},
"appointment_split_days": [
1,
2,
7,
28,
49
],
"chronodoses": {
"vaccine": [
"ARNm",
"Pfizer-BioNTech",
"Moderna"
],
"interval": 2
},
"excluded_gouv_platforms": [
"doctolib",
"maiia"
],
"reserved_centers": [
"réservé",
"reserve",
"professionnel"
],
"platforms": {
"doctolib": {
"enabled": true,
"timeout": 30,
"recognized_urls": [
"https://partners.doctolib.fr",
"https://www.doctolib.fr"
],
"build_url": "https://www.doctolib.fr{url_path}?pid={place_id}",
"api": {
"booking": "https://partners.doctolib.fr/booking/{centre}.json",
"slots": "https://partners.doctolib.fr/availabilities.json?start_date={start_date}&visit_motive_ids={motive_id}&agenda_ids={agenda_ids_q}&insurance_sector=public&practice_ids={practice_ids_q}&destroy_temporary=true&limit={limit}",
"scraper": "http://www.doctolib.fr/vaccination-covid-19/france.json?page={0}",
"scraper_dep": "http://www.doctolib.fr/vaccination-covid-19/{0}.json?page={1}"
},
"request_sleep": 0.1,
"pagination": {
"pages": 4,
"days": 7
},
"filters": {
"appointment_reason": [
"1 ere injection",
"1 ère injection",
"1er injection",
"1ere dose",
"1ere injection",
"1ère injection",
"1re injection",
"vaccination",
"Vaccin COVID-19"
],
"appointment_category": [
"18 à 54",
"55 ans",
"70 ans",
"50 ans",
"18 ans",
"16 ans",
"eligibles",
"éligibles",
"astra Zeneca",
"femmes enceintes",
"grossesse",
"injection unique",
"janssen",
"je ne suis pas professionnel de santé",
"je suis un particulier",
"non professionnels de santé",
"patient",
"personnes à très haut risque",
"personnes âgées de 60 ans ou plus",
"personnes de 60 ans et plus",
"personnes de plus de",
"pfizer",
"public",
"vaccination au centre",
"vaccination covid",
"vaccination pfizer",
"assesseur",
"vote",
"pharmacien",
"vaccin",
"réservation en ligne",
"réservable en ligne",
"comorbidités",
"enceinte",
"immunodéprimée",
"18",
"consultation",
"eligibles",
"très haut risque",
"moderna",
"astra",
"astrazeneca",
"pré-consultation"
]
},
"center_scraper": {
"result_path": "data/output/doctolib-centers.json",
"business_days": [
"lundi",
"mardi",
"mercredi",
"jeudi",
"vendredi",
"samedi",
"dimanche"
],
"center_types": {
"pharmacie": "drugstore",
"medecin": "general-practitioner",
"*": "vaccination-center"
},
"categories": [
"hopital-public",
"centre-de-vaccinations-internationales",
"centre-de-sante",
"pharmacie",
"medecin-generaliste",
"centre-de-vaccinations-internationales",
"centre-examens-de-sante"
],
"dep_conversion": {
"indre": "departement-indre",
"gironde": "departement-gironde",
"mayenne": "departement-mayenne",
"vienne": "departement-vienne"
}
}
},
"keldoc": {
"enabled": true,
"timeout": 10,
"recognized_urls": [
"https://vaccination-covid.keldoc.com",
"https://keldoc.com"
],
"api": {
"booking": "https://booking.keldoc.com/api/patients/v2/searches/resource",
"motives": "https://booking.keldoc.com/api/patients/v2/clinics/{0}/specialties/{1}/cabinets/{2}/motive_categories",
"cabinets": "https://booking.keldoc.com/api/patients/v2/clinics/{0}/specialties/{1}/cabinets",
"slots": "https://www.keldoc.com/api/patients/v2/timetables/{0}"
},
"pagination": {
"pages": 4,
"days": 4
},
"filters": {
"appointment_speciality": [
"Maladies infectieuses",
"COVID19 - Vaccination"
],
"appointment_skill": [
"Centre de vaccination COVID-19"
],
"appointment_reason": [
"1 er inj",
"1 ere inj",
"1 ère inj",
"1ere dose",
"1ère dose",
"1ere inj",
"1ère inj",
"covid19 - vaccination",
"inj 1",
"inj. 1",
"inj1",
"1 injection",
"première dose",
"1° injection",
"première injection"
]
},
"center_scraper": {
"result_path": "data/output/keldoc_centers.json"
}
},
"maiia": {
"enabled": true,
"timeout": 30,
"base_url": "https://www.maiia.com",
"recognized_urls": [
"https://www.maiia.com"
],
"api": {
"scraper": "https://www.maiia.com/api/pat-public/hcd?distanceMax=10000&AllVaccinationPlaces=true&speciality.shortName={speciality}",
"slots": "https://www.maiia.com/api/pat-public/availabilities?centerId={center_id}&consultationReasonName={consultation_reason_name}&from={start_date}&to={end_date}",
"next_slot": "https://www.maiia.com/api/pat-public/availability-closests?centerId={center_id}&consultationReasonName={consultation_reason_name}&from={start_date}",
"motives": "https://www.maiia.com/api/pat-public/consultation-reason-hcd?rootCenterId={center_id}"
},
"center_scraper": {
"centers_per_page": 100,
"result_path": "data/output/maiia_centers.json",
"categories": [
"centre-de-vaccination",
"pharmacie",
"centre-hospitalier-(ch)"
],
"specialities": [
"VAC01"
],
"excluded_ids": [
"603e4fae8c512e753fc49ba1"
],
"excluded_names": [
"test",
"antigenique",
"antigénique"
],
"business_days": {
"Lundi": "MONDAY",
"Mardi": "TUESDAY",
"Mercredi": "WEDNESDAY",
"Jeudi": "THURSDAY",
"Vendredi": "FRIDAY",
"Samedi": "SATURDAY",
"Dimanche": "SUNDAY"
}
},
"filters": {
"injection_type": [
"FIRST"
]
},
"calendar_limit": 50
},
"mapharma": {
"enabled": true,
"timeout": 30,
"recognized_urls": [
"https://mapharma.net"
],
"api": {
"opendata": "https://mapharma.net/opendata/rdv",
"opendata_fallback": "https://raw.githubusercontent.com/CovidTrackerFr/vitemadose/data-auto/data/output/mapharma_open_data.json",
"slots": "https://mapharma.net/api/public/calendar/{campagneId}/{start_date}/{optionId}"
},
"headers": {
"referer": "https://mapharma.net/"
},
"paths": {
"opendata": "data/output/mapharma_open_data.json",
"valid_campaigns": "data/input/mapharma_campagnes_valides.json",
"invalid_campaigns": "data/input/mapharma_campagnes_inconnues.json"
},
"slot_limit": 50,
"business_days": [
"lundi",
"mardi",
"mercredi",
"jeudi",
"vendredi",
"samedi",
"dimanche"
],
"filters": {
"valid_campaigns": [
"vaccination covid",
"covid 1ère injection"
],
"invalid_campaigns": [
"test antigenique",
"test antigénique",
"test sérologique",
"pilulier",
"diététique",
"nutrition"
]
}
},
"ordoclic": {
"enabled": true,
"timeout": 30,
"recognized_urls": [
"https://app.ordoclic.fr"
],
"build_url": "https://app.ordoclic.fr/app/pharmacie/{slug}",
"api": {
"scraper": "https://api.ordoclic.fr/v1/public/search",
"motives": "https://api.ordoclic.fr/v1/solar/entities/{entityId}/reasons",
"slots": "https://api.ordoclic.fr/v1/solar/slots/availableSlots",
"profile_professionals": "https://api.ordoclic.fr/v1/professionals/profile/{slug}",
"profile_public_entities": "https://api.ordoclic.fr/v1/public/entities/profile/{slug}"
},
"filters": {
"valid_injections": [
1
]
},
"scraper_payload": {
"page": "1",
"per_page": "10000",
"in.isPublicProfile": "true",
"in.isCovidVaccineSupported": "true",
"or.covidOnlineBookingAvailabilities.vaccineAstraZeneca1": "true",
"or.covidOnlineBookingAvailabilities.vaccineJanssen1": "true",
"or.covidOnlineBookingAvailabilities.vaccinePfizer1": "true",
"or.covidOnlineBookingAvailabilities.vaccineModerna1": "true"
}
},
"avecmondoc": {
"enable": true,
"timeout": 25,
"slot_limit": 50,
"week_size": 6,
"recognized_urls": [
"https://patient.avecmondoc.com/"
],
"patient_url": "https://patient.avecmondoc.com/fiche/structure/{slug}",
"search_tries": 2,
"api": {
"search": "https://api.avecmondoc.com/api/Doctors/search",
"search_filter": {
"params": "{\"city\": null, \"gps\": null, \"dateBefore\": null}",
"options": "{\"limit\": 1000, \"page\": 1, \"distance\": null}"
},
"get_doctor_slug": "https://api.avecmondoc.com/api/Doctors/slug/{slug}",
"get_organization_slug": "https://api.avecmondoc.com/api/Organizations/slug/{slug}",
"get_by_organization": "https://api.avecmondoc.com/api/Doctors/getByOrganization/{id}",
"get_by_doctor": "https://api.avecmondoc.com/api/Organizations/getByDoctor/{id}",
"get_reasons": "https://api.avecmondoc.com/api/Organizations/getConsultationReasons",
"availabilities_per_day": "https://api.avecmondoc.com/api/BusinessHours/availabilitiesPerDay"
},
"filters": {
"valid_reasons": [
"Premiere injection COVID 19",
"Première injection vaccinale COVID-19",
"Rendez-vous de première vaccination Covid-19",
"1ere vaccination astra",
"Injection vaccinale COVID-19 - Janssen",
"Injection monodose Janssen",
"Injection vaccinale monodose Janssen"
]
},
"center_scraper": {
"business_days": {
"1": "Lundi",
"2": "Mardi",
"3": "Mercredi",
"4": "Jeudi",
"5": "Vendredi",
"6": "Samedi",
"0": "Dimanche"
}
}
}
}
}