GUI / covid-vaccine-spotter

https://www.vaccinespotter.org
MIT License
507 stars 136 forks source link

a bunch of Walmarts stopped updating #170

Open jxchong opened 3 years ago

jxchong commented 3 years ago

e.g. store 2037 hasn't been updated in the API since 2021-04-29T16:11:54.643+00:00

jxchong commented 3 years ago

Looks like your frontend is now also reporting that Walmart as a whole stopped updating as of ~10 hours ago.

jxchong commented 3 years ago

@GUI actually good news. Walmart's API changed - and you don't have to login anymore!

curl 'https://www.walmart.com/pharmacy/v2/clinical-services/stores?search=98121&imzType=COVID&proximity=50' -H 'User-Agent: Blah' -H 'Accept: application/json' --compressed -H 'Referer: https://www.walmart.com/pharmacy/clinical-services/immunization/scheduled?imzType=covid' -H 'Content-Type: application/json'
GUI commented 3 years ago

Thanks for letting me know! But sorry for the belated response. Something has definitely changed with the Walmart stuff that has broken things. However, that new endpoint still appears to require some session shenanigans, so it doesn't appear totally straightforward. I'm able to make a few requests to that endpoint without a login, but then it starts returning a "blocked" redirect in the JSON response for captchas. I'll try to dig more into this tomorrow.