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
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
- clone the repo
- execute requirements.txt file
- run main.py
- open this location in browser : http://127.0.0.1:5000/api/v1/mahadev
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