Food Recognition Selenium using Caloriemama API

Selenium is a powerful tool for controlling the web browser through a program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python.

In this article, we are going to see how to automate the Caloriemama website using selenium. We are just going to post a food picture on caloriemama API website and return the result it shows on that site.

Before going into code, we need to install selenium for Python.

pip install selenium

Web Drivers
Selenium requires a web driver to interface with the chosen browser.Web drivers is a package to interact with web browser. It interacts with the web browser or a remote web server through a wire protocol which is common to all. You can check out and install the web drivers of your browser choice.


Modules needed