The Urban Dictionary is an amazing resource for english language lovers; It features the accurate definitions of words, not like other services like Wikipedia, Oxford, etc. 😅
In this project your are going to build a terminal based (CLI) dictionary.
Clone this repository locally (
git clone <project url>) or open it with Gitpod by clicking here (recomended):
Note: The project requires Python 3.8 and pipenv (python package manager), if you open it with Gitpod you are ok but localhost users will need to install manually.
Install the application dependencies by typing (only once):
Run the application by typing (every time):
input("What term do you want to look for?")python function.
Let's supposed that we are looking for the definition of the word
The API specification says that you have to do a GET request to the following URL:
Don't forget to add the
headers with the API credentials, please refer to the API example in the documentation.
The following requirements are not mandatory but you can try completing them if you feel confident:
sys.argvto allow the user to ask for a definition like this:
Hint: how to use the sys.argv
All rights reserved, 4Geeks LLC 2021. Read more about 4Geeks and what we are going here.