Add Coborn Pharmacy
Opened this issue · 2 comments
See available appointment are managed by AppointmentPlus
#39 also uses appointments plus
i was able to grab the list items from the HTML of the page listing the stores and remove most of the cruft with a regex (<(/|)(li|div|span|br)[a-z -="]*>
). replacing the results of this regex with a ;
(using vscodes amazing find and replace) removes some of the useless HTML tags and gets it closer to a CSV-parsable format (don't use a comma because the address also contains a comma).
then replacing the following Regex's with the empty string pulled out the value for the store id:
<button[a-z -="]*value="
"[a-z -="]*>Select
</button>
At this point its now a semicolon-separated CSV format (there are some blank columns but those can be relatively easily removed in a csv editor like libreoffice calc or MS excel).
here's a cleaned up version: https://docs.google.com/spreadsheets/d/1JrGbYHWPmh04_poPF-Fw2SZSrKBGCYyZOJWYP6CVY80/edit?usp=sharing
From here it seems like it should be as simple as calling the right endpoints with these client ID's to get availability data similar to costco
Ah, sweet, thanks for digging this up and pointing out that it's the same underlying booking system as Costco. Now that I have Costco implemented, I'm hoping this should be easier to add Coborn, so that's great to know. It looks like the flow is slightly different with Coborn, but I think it's all basically the same, so I'm still hopeful to leverage a lot of the Costco code. Thanks!