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

get stores from meta files #156

Open
Ephigenia opened this issue Jan 3, 2023 · 8 comments
Open

get stores from meta files #156

Ephigenia opened this issue Jan 3, 2023 · 8 comments
Assignees

Comments

@Ephigenia
Copy link
Owner

A list of all stores in a country can be obtained from a URL in the format:

https://www.ikea.com/<cc>/<lc>/meta-data/navigation/stores-detailed.json

Examples for Finland, Germany and austria:

As a first step there should be a script that updates the list of stores using this API for all supported countries.

@Teko012
Copy link
Contributor

Teko012 commented Jan 3, 2023

You could parse the available options from the localizedSites from here: https://www.ikea.com/global/en/shared-data/regions.js Most of it supports this, the rest (the list is fairly small, the not ikea.com ones) could be some kind of manual check/maybe a CI check where it calls the API and reports back if it finds a store or country not in the list maybe. That way we could extend it further easily if the API supports it (right now it just dies with a nodeJS error).

@Teko012
Copy link
Contributor

Teko012 commented Jan 3, 2023

Also, sometimes the meta files are available both in english and in local language.

@Ephigenia
Copy link
Owner Author

Thanks for this additional helpful note about the countries! I also added a project task for this one: #157

@Teko012
Copy link
Contributor

Teko012 commented Jan 3, 2023

One side note I noticed about both: Spain is a special case, the have both kind of sites, so the ikea.com one doesn't include the island ones from islas.ikea.es (I haven't checked if it shows up in the API, but it's not in the meta files)

@Teko012
Copy link
Contributor

Teko012 commented Jan 15, 2023

I think if this gets implemented, it should also scrape the API with some generic product (such as the batteries) to get the stores in countries that don't have meta files. I think that should cover all the possibilities.

@Teko012
Copy link
Contributor

Teko012 commented Jul 23, 2023

I ran into a missing store. @Ephigenia Do you have any idea for this and #157 when it could be implemented?

@Ephigenia
Copy link
Owner Author

I ran into a missing store. @Ephigenia Do you have any idea for this and #157 when it could be implemented?

I don’t have plans for this as I’m working totally occassionally on it. Maybe in 1-2 Months when I got some free time from work.

@Teko012
Copy link
Contributor

Teko012 commented Nov 12, 2024

@Ephigenia I noticed that the file is now very outdated, some countries are missing close to half the stores. Do you have time to update it maybe? :)

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

No branches or pull requests

2 participants