OFF explorations, and looking at filling the gaps in Singapore.
- Joined OpenFoodFacts on April 04, 2019
- Project status: ongoing
Current code is in Jupyter Notebooks
- Clone the repository
- Run
jupyter notebook
- Go to
http://localhost:8888/tree/
Note: some files are not tracked in git, so some code may return errors
OpenFoodFacts is a collaborative, free and open database of food products from around the world. #Commons
- website: https://world.openfoodfacts.org/
- github: https://github.com/openfoodfacts
Scraping is 'grey area'. So best to stay on the safe side. "Do not send copyrighted photos or information using the API. Everything you send is OdBL for the data, and CC-BY-SA for the pictures. If those are not yours (eg from scraping), you bear all the legal consequences."
Chrome extension: https://github.com/roiKosmic/DriveOff
- docs: https://en.wiki.openfoodfacts.org/API/Read/Product
- endpoint:
https://world.openfoodfacts.org/api/v0/product/<code>
https://en.wiki.openfoodfacts.org/API/Write
Redmart is one of Singapore's most used online supermarket. It is owned by Lazada.
- old website: https://redmart.com/
- new website (as of March 2019): https://redmart.lazada.sg/
The API returns many useful details on the product.
You can see an example product here
Product fields:
- sku (string)
- title (string)
- category_tags (array)
- desc (string)
- description_fields {primary, secondary}
- filters {mfr_name, is_organic, country_of_origin, brand_name}
- img & images
- measure
- pricing
- product_life
need to be logged in
need to be logged in
- endpoint:
https://api.redmart.com/v1.6.0/catalog/search
- example:
https://api.redmart.com/v1.6.0/catalog/search?q=redmart&pageSize=18&sort=1024&category=redmart-label&page=1
Work in progress
Goal: get Redmart products and store them in a CSV. Clean and check the data with a real product in hand (take pictures as well). Then upload to OFF.
https://github.com/lologhi/redmart-per-kilo (Chrome extension)
- website: https://coldstorage.com.sg/
- offline supermarkets as well (scan parties possible)
- website: https://www.fairprice.com.sg
- offline supermarkets as well (scan parties possible)