/openfoodfacts-singapore

OFF explorations in Singapore

Primary LanguageJupyter Notebook

OpenFoodFacts x Singapore

OFF explorations, and looking at filling the gaps in Singapore.

Status

  • Joined OpenFoodFacts on April 04, 2019
  • Project status: ongoing

Get started

Current code is in Jupyter Notebooks

  1. Clone the repository
  2. Run jupyter notebook
  3. Go to http://localhost:8888/tree/

Note: some files are not tracked in git, so some code may return errors

OpenFoodFacts

Understand

OpenFoodFacts is a collaborative, free and open database of food products from around the world. #Commons

License

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."

Ecosystem

Chrome extension: https://github.com/roiKosmic/DriveOff

API

View a product

Write

https://en.wiki.openfoodfacts.org/API/Write

Singapore Online Providers

Redmart

Understand

Redmart is one of Singapore's most used online supermarket. It is owned by Lazada.

Product details

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

My List

need to be logged in

My Orders

need to be logged in

Search

  • 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

API

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.

Ecosystem

https://github.com/lologhi/redmart-per-kilo (Chrome extension)

Cold Storage

NTUC Fairprice