Skip to content

autonomously grab nutrient data from Food Data Central using fdc API

Notifications You must be signed in to change notification settings

jungkyuk/fdc-grabber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A simple script to get nutrient info from Food Data Central by FDC IDs

Setup

  1. Clone the repo with
    git clone https://github.com/jungkyuk/fdc-grabber.git

  2. Copy and paste your API key in foodcodes.py
    FDC_API_KEY = '<YOUR_API_KEY_HERE>'

  3. Create a virtual environment:
    python -m venv .venv

  4. Activate the venv
    Windows: .venv/Scripts/activate
    Mac: source .venv/bin/activate

  5. Install requirements
    pip install -r requirements.txt

Usage

Run with python foodcodes.py <fdcID>

About

autonomously grab nutrient data from Food Data Central using fdc API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages