Skip to content

OpenFoodFacts is the 5th project for the Python formation at Openclassrooms.

Notifications You must be signed in to change notification settings

Gui0delp/OpenFoodFacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Open Food Facts

OpenFoodFacts is the 5th project for the Python formation at Openclassrooms.

This Python script will query the API of OpenFoodFacts in order to propose to the user, according to his choices, a food of substitution.

Technology used

  • Python for the script
  • MySQL for the DBMS

Functions

  • the user selects a food category
  • the user chooses a food of the category
  • the script will query the OpenFoodFacts API
  • the script displays the substitute food for the food selected by the user.
  • the script also displays the product description, a store or buy it and a link to the Open Food Facts website
  • The user has the possibility to save the substitute food in a given database

Installation

Installation for Windows:

  1. Download the get-pip.py (link below) installer script. Save As and save it on your computer, such as your Downloads folder.

get-pip.py for Python 3.2 or later

  1. Open a Command (Window+r -> write cmd) and navigate to the get-pip.py file.

  2. Run the following command:

python get-pip.py

Well done, you have install pip, let's go for the next step.

  1. Clone the project on your computer.

  2. For install the dependences navigate to the folder of the project with command and use this:

pip install -r requirements.txt

  1. Now you can use the script with command

Installation for Mac:

  1. Open a Command and run the following command:

sudo easy_install pip

Well done, you have install pip, let's go for the next step.

  1. Clone the project on your computer.

  2. For install the dependences navigate to the folder of the project with command and use this:

pip install -r requirements.txt

  1. Now you can use the script with command

Documentation

Link of the OpenFoodFacts API

About

OpenFoodFacts is the 5th project for the Python formation at Openclassrooms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages