tritus / candilibre

Un robot pour obtenir des places de permis sur le site candilib.
MIT License
15 stars 7 forks source link

Keep track of centers in memory to prevent calling the server again for ids #1

Closed tritus closed 3 years ago

tritus commented 4 years ago

Everytime we try to check again for slots, the centres ids are got from a call to the api. This is useless since we should just keep those ids in memory to prevent those extra calls that make us loose so much time in rush hours.

nicksauca commented 4 years ago

FIY, you can also get your slots for a center, by specifying "departement code" and "center name" in querry params, like that: candidat/places?geoDepartement=xx&nomCentre=xx, thus you can target your specific center, without making first request to retrieve its ID

tritus commented 3 years ago

You are right. I should use such query, that would speed up the process. Thanks.

tritus commented 3 years ago

fixed by #14