mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-09-24 00:00:27 +02:00
303d25ccb5
Billa maps directly to the canonical categories. Spar uses a mapping file stores/spar-categories.json. Each store has a generateCategoryMapping() function which is called once in analysis.js:updateData() and analysis.js:replay(). The function is responsible for * Fetching the latest categories * Merging them with already mapped categories * Report new categories that haven't been mapped yet * Report categories that have been mapped but are no longer part of the latest set of categories * Save the merged mappings to disk This schema might not work for all stores, in which case updateData() and replay() will use a knn approach to figure out the category for an item. See #81 |
||
---|---|---|
.. | ||
billa.js | ||
dm-de.js | ||
dm.js | ||
hofer.js | ||
index.js | ||
lidl.js | ||
mpreis.js | ||
penny.js | ||
rewe-de.js | ||
spar-categories.json | ||
spar-si.js | ||
spar.js | ||
unimarkt.js | ||
utils.js |