Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Add Coborn Pharmacy #128

Open
ctharings opened this issue Apr 5, 2021 · 2 comments
Open

Add Coborn Pharmacy #128

ctharings opened this issue Apr 5, 2021 · 2 comments

Comments

@ctharings
Copy link

See available appointment are managed by AppointmentPlus

https://www.coborns.com/covid19

@MoralCode
Copy link

#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

@GUI
Copy link
Owner

GUI commented Apr 12, 2021

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants