Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The format of STARBUCKS store-locator data has been changed. #2

Open
nouvelle opened this issue Apr 12, 2021 · 0 comments
Open

The format of STARBUCKS store-locator data has been changed. #2

nouvelle opened this issue Apr 12, 2021 · 0 comments

Comments

@nouvelle
Copy link

Hi!

It seems that the format of the store-locator data in STARBUCKS has been changed and the data is not being retrieved correctly.

The current response data does not contain an element whose id is bootstrapData.
So, I think you need to change the following code.

const $ = cheerio.load(res)
const json = JSON.parse($('#bootstrapData').text())
const stores = json.storeLocator.locationState.locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant