Hello there good people,
SITUATION
I am a foreigner living in France and in order to be able to drive car here, I must register on a governmental website and find a suitable date for an appointment. Bureaucracy. Meh. The bad thing is, availability is extremely scarce and the only thing I've had for the moment is
disappointment...
PROBLEM
An employee told me they put new available time slots online every Sunday at 11:59 PM, some sort of a weekly renewal if you like. I have tried from 11:30 PM to 02:20 AM, filling the same form over and over and over, for 8 weeks but nothing ever happened
I am feeling really confused and a bit angry.
SOLUTION ?
I am asking for your help in the making of an automated process (OSX based, ideally, but Windows works)
STEP 1 : clicking in a checkbox ('I agree' type of thing),
http://www.rhone.gouv.fr/booking/create/20139/0STEP 2 : clicking 'next',
and
STEP 3-a : if the next webpage to show up is the error webpage
http://www.rhone.gouv.fr/booking/create/20139/2 > back to STEP 1, in a loop.
STEP 3-b : if the next webpage to show up is the right webpage
http://www.rhone.gouv.fr/booking/create/20139/1 > playing a super crazy loud alert sound on computer (+ sending an email, an SMS, whatever will do. This is optional but would be so cool).
ADDITIONAL NOTE
- The server doesn't look rock-solid and I've had quite a few "Error 502 : bad gateway" blank screens, as well as another "Error 503 guru meditation" message. The script should know how to "react" in such cases.
- A log file would be absolutely great (see 'GOOD TO KNOW'). Date + Time + Attempt nbr X for instance.
I've found a few automation processes online, but they don't seem to fit in this particular scenario :s
Be free, be wild, think outside the box, brainstorm this baby!
Thank you so much in advance
GOOD TO KNOW
I might need a log file in order to prove that the administration is actually not putting new time slots. It may very well help my case…