Calculate nutrition for your favourite recipe!
Try live here
Nutrigo uses basic parsing techniques and USDA's Food Database to calculate nutrition for recipes. Nevertheless it provides good results for well-structured and uncomplicated recipes (ingredient list).
nutrigo requires Python 3.6+ to run.
Install the dependencies using Pipenv, download corpora and run the server.
$ pipenv install --dev
$ python3 -m textblob.download_corpora
$ python3 manage.py runserver
Open your web browser, type localhost:8000
and enter recipe url.
$ docker-compose build nutrigo
$ docker-compose up nutrigo
--Note that parsing third-party websites is only possible by using API Endpoint /api/calculate-from-url
So far the only supported websites are: Yummly.com, KwestiaSmaku.com
Adding support for a recipe website is very simple. See recipe.py for examples.
$ pytest
Feel free to contribute to the project by creating pull requests!
- Django - Python Web framework
- Django REST framework - Django REST framework
This project is licensed under the MIT License - see the LICENSE.md file for details