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

Harveys Supermarket #876

Closed
maxerickson opened this issue Apr 18, 2018 · 3 comments · Fixed by #7643
Closed

Harveys Supermarket #876

maxerickson opened this issue Apr 18, 2018 · 3 comments · Fixed by #7643
Labels
Spider type: Custom API Brand-specific custom API should be queried by this spider.

Comments

@maxerickson
Copy link

https://www.harveyssupermarkets.com/Locator

@davidhicks
Copy link
Member

Single API call appears to return all locations as JSON data: curl 'https://www.harveyssupermarkets.com/V2/storelocator/getStores' -X POST -H 'Accept: application/json, text/plain, */*' -H 'Content-Type: application/json;charset=utf-8' -data-raw '{"search":"jacksonville, fl","strDefaultMiles":"25000","filter":""}'

Some "Site is undergoing maintenance" HTML page data seems to incorrectly follow the JSON data, so response.json() could potentially not work without first stripping the erroneous HTML data suffixed to the JSON data.

@davidhicks davidhicks added the Spider type: Custom API Brand-specific custom API should be queried by this spider. label Aug 23, 2023
@CloCkWeRX
Copy link
Contributor

Is this the same as

url="https://www.winndixie.com/V2/storelocator/getStores?search=jacksonville,%20fl&strDefaultMiles=1000&filter=",
?

@davidhicks
Copy link
Member

Same parent company Southeastern Grocers: https://www.segrocers.com/

They likely share the same ICT systems between both brands.

If the spiders are simple, I'd just copy+paste and make whatever adjustments are necessary. If they're complex, you can always have one spider inherit from the other and reuse common code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spider type: Custom API Brand-specific custom API should be queried by this spider.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants