If you’re Calorie Conscious or by any chance nerd? Then this one is for you 🙂 So how about getting the Nutritional value of a food item from Powershell 😀
HOW IT WORKS
To make it work we are simply making calls to a REST API of “United States Department of Agriculture” to search your food item and some data wrangling to get the nutrition report.
NOTE : You’ve to just register for a API subscription key from here under ‘gaining access’ section of the page. Once you’re subscribed, place the key in the script (Line-15) and you’ll be able to get-nutrients like in the following animation
SCRIPT
Have fun exploring this script and find some time to show off to your friends 😉
Author of “PowerShell Guide to Python“, “Windows Subsystem for Linux (WSL)” and currently writing the most awaited book: “PowerShell to C# and Back” !
Prateek Singh
Related posts
0 Comments
Categories
Author of Books
Awards
Open Sourced Projects
Author at
Blog Roll
Mike F RobbinsDamien Van Robaeys
Stéphane van Gulick
Kevin Marquette
Adam Bertram
Stephanos Constantinou
Francois-Xavier Cat
Ravikanth Chaganti
Roman Levchenko
Blog Stats
- 1,133,184 People Reached
[…] on January 10, 2017 submitted by /u/Prateeksingh1590 [link] [comments] Leave a […]
COOL one 😉
I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting.
Thank you so much, I’m glad you liked the content on my blog!