The aim of this project is to suggest some crazy/interesting activities using API to overcome boredom.
To make a python scripts to generate creative ideas using boredapi all in just a single execution of the scripts. I Am Bored Scripts uses boredapi to generate random activities that involve individual activities or activities that involve friends. An interesting addition to the API scripts
requests 2.26.0
: To sent a requests to the API.
boredapi API that generates random activities.
- Importing requests
- Get input
ImBored
- Making a call to the API
- Get input
q
to quit.
- Required Python 3.x setup
- Install
requests 2.26.0
using the commandpip install requests
- Run the scripts using
python i_am_bored.py
Methods :
get_Idea()
: is used to send a GET request to the API each time to generate new ideas/activites.
There are two commands that is used while running the script:
ImBored
: to generate new ideas.q
: to end the scripts.
Sirish C Happy coding 🤟