Open Ephigenia opened 1 year ago
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).
Also, sometimes the meta files are available both in english and in local language.
Thanks for this additional helpful note about the countries! I also added a project task for this one: https://github.com/Ephigenia/ikea-availability-checker/issues/157
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)
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.
I ran into a missing store. @Ephigenia Do you have any idea for this and #157 when it could be implemented?
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.
@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? :)
A list of all stores in a country can be obtained from a URL in the format:
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.