Open-source project using Nodejs and Puppeteer to scrape websites for COVID vaccine availability in Massachusetts. Can be modified to suit other areas and needs.
2nd Attempt. PR #189 didn't work because of "Target Closed" error from Puppeteer.
I added a try/catch block and a short timeout to hopefully prevent everything from grinding to a halt.
I also changed the method of detection from the contents of the page to the URL of the page. When there are no appointments available, MAImmunizations redirects to /errors?message=Clinic+does+not+have+any+appointment+slots+available.
2nd Attempt. PR #189 didn't work because of "Target Closed" error from Puppeteer.
I added a try/catch block and a short timeout to hopefully prevent everything from grinding to a halt.
I also changed the method of detection from the contents of the page to the URL of the page. When there are no appointments available, MAImmunizations redirects to
/errors?message=Clinic+does+not+have+any+appointment+slots+available.