/The-Mahadev-Api

An Api to get random Lord Shiva Images. Har Har Mahadev 🕉️

Primary LanguagePythonMIT LicenseMIT

The-Mahadev-Api

forthebadge forthebadge forthebadge

An Api to get Lord Mahadev Images. Har Har Mahadev 🕉️

Shiva

Happy Mahashivratri

This Api is created to get random Lord Shiva images. The Api is created using flask and is hosted on Heroku. It's free to use and can be accessed using python packages like requests.

Api is online here : Mahadev Api

The API endpoints are :

base url : https://mahadev-api.herokuapp.com/api/v1/

  • edited : to get edited shiva images endpoint
  • mahadev : to get rando mahadev images endpoint
  • shivlinga : to get random shivlinga images endpoint
  • random : to get random edited, mahadev or shivlinga images endpoint
  • today : to get daily date based random lord shiva images endpoint

if you want to run it locally :

Requirements

All the requirements are provided inside the requirements.txt file, to install packages using this requirements.txt run the following command in cmd

pip3 install -r requirements.txt

to run test.py file, two additional packages are required. Install them from pip

pip install pillow
pip install reqeusts