If you don’t find any medical appointment or COVID-19 vaccination center slots, you can use the APIs of website, but it can take time to properly you API call.
You can use the Copy as cURL
function from your Google Chrome browser like this:
Inspect
windowsNetwork
tabCopy as cURL
the availabilities.json
requestYou can now paste this cURL URL in one simple bash script
#!/bin/bash
CHECK_RESULT=$(curl 'https://www.doctolib.fr/availabilities.json?start_date=2021-11-01&visit_motive_ids=2541699&agenda_ids=442222-404407-233765-242241-408406&insurance_sector=public&practice_ids=163800&limit=3'\
-H 'sec-ch-ua: "Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"' \
-H 'accept: application/json' \
-H 'Referer: https://www.doctolib.fr/vaccination-covid-19/paris/centre-de-vaccination-paris-19eme' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36' \
-H 'content-type: application/json; charset=utf-8' \
--compressed)
if echo $CHECK_RESULT | grep -E --quiet "no_availabilities.*831"; then
echo "`date +%Y/%m/%d_%H:%M:%S`:: No availabilities"
else
echo "`date +%Y/%m/%d_%H:%M:%S`:: CHANGE"
echo "Free vaccination slot in Paris 19eme" | mailx -r [email protected] -s "Doctolib Paris 19eme change" [email protected]
fi
If you program this script with a simple crontab, you will receive an email as soon as a slot becomes available.