Code Monkey home page Code Monkey logo

restaurant-nutrition-data's Introduction

restaurant-nutrition-data

Nutrition data from popular restaurants and fast food chains.

Contributions

I welcome contributions in the form of pull requests.

  • If contributing a new restaurant, please provide a copy of the original raw source in the sources directory. Values should match what is in the original source.
  • Percentage-based values, like %DV, must be converted to a mass-based amount. %DV amounts vary by country and by year, so please provide evidence to how you handled the conversion. Otherwise, please simply omit %DV values.
  • Ensure that your data is formatted according to the specification defined below.
  • Please reference existing files as a reference.

If you have any questions, please create an issue.

Data format

Columns

  • Name
  • Serving Size Description
  • Serving Size (g)
  • Serving Size (mL)
  • Calories
  • Total Fat (g)
  • Saturated Fat (g)
  • Trans Fat (g)
  • Monounsaturated Fat (g)
  • Polyunsaturated Fat (g)
  • Cholesterol (mg)
  • Sodium (mg)
  • Carbohydrates (g)
  • Fiber (g)
  • Sugars (g)
  • Sugars Added (g)
  • Sugar Alcohols (g)
  • Protein (g)
  • Alcohol (g)
  • Water (ml)
  • Caffeine (mg)
  • Calcium (mg)
  • Chlorine (mg)
  • Iron (mg)
  • Magnesium (mg)
  • Phosphorus (mg)
  • Potassium (mg)
  • Zinc (mg)
  • Chromium (μg)
  • Copper (mg)
  • Iodine (μg)
  • Manganese (mg)
  • Molybdenum (μg)
  • Selenium (μg)
  • Vitamin A (μg)
  • Vitamin E (mg)
  • Vitamin D (μg)
  • Vitamin C (mg)
  • Vitamin B6 (mg)
  • Vitamin B12 (μg)
  • Vitamin K (μg)
  • Thiamin (mg)
  • Riboflavin (mg)
  • Niacin (mg)
  • Pantothenic Acid (mg)
  • Biotin (μg)
  • Folate (μg)

Casing

  • Values in the "Name" column should be title-cased.
  • Values in the "Serving Size Description" column should be lowercased.
  • All other values should only contain unformatted numbers, without thousand separators and a "." as the decimal separator.

Example

Egg McMuffin,,136,,300,13,5,0,260,750,31,4,3,17
Sprite (Child),12 fl oz cup,,,100,0,0,0,0,25,27,0,27,0
1% Low Fat Milk Jug,1 carton,,236,100,2.5,1.5,0,10,125,12,0,12,8

See existing files for more examples.

License

See LICENSE.txt.

restaurant-nutrition-data's People

Contributors

benjohnson avatar clynham avatar cweirup avatar dudleynyc avatar godfreja avatar ryanashcraft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

restaurant-nutrition-data's Issues

Carbs / Fiber

Hi @ryanashcraft - Decided I'd have a go at formatting Greggs data which is one of the larger UK fast food chains and I don't think should cause too much confusion for US users as I don't think it's made it that side of the pond yet.

Source Data Is Here: https://www.greggs.co.uk/nutrition

Which links to: https://a.storyblok.com/f/94904/x/04ce652624/greggs-nutrition-information-sept-2022.pdf

I'll include the PDF in the sources directory. My question is about the Fibre values though. In the UK they're usually reported separately to carbs. I know the app can handle that difference but how should it be handled in the CSV upload. Should I add them into the carb figure which would then make the CSV file differ from the PDF or keep them the same?

This is the work in progress: https://github.com/clynham/restaurant-nutrition-data/blob/greggs-apr2023/greggs.csv

International Restaurants

Is there a specific way you'd like us to handle international restaurants? I'm specifically thinking of Freshii and Tim Hortons who have different information for each country.

PDFs are Encrypted

All the PDFs committed in the repo seem to be encrypted:

  • sources/chick-fil-a.pdf
  • sources/starbucks.pdf
  • sources/subway.pdf

Restaurant request: Panda Express

Not a lot of dining options on my university campus, but Panda has some slightly healthful options. I've entered the two or three things I eat somewhat more frequently manually into FoodNoms, but having everything else would make me more inclined to not eat the same thing every day!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.