Skip to content

piotr-kopacki/nutrigo

Repository files navigation

nutrigo

Calculate nutrition for your favourite recipe!

Coveralls github branch Travis (.com)

Try live here

Overview

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

Installing

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

Usage

Open your web browser, type localhost:8000 and enter recipe url.

Running with Docker Compose

$ docker-compose build nutrigo
$ docker-compose up nutrigo

Supported websites

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

Running the tests

$ pytest

Contribution

Feel free to contribute to the project by creating pull requests!

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details