Improving your vocabulary
It is possible to improve your vocabulary using Python! Imagine setting up a large display that is installed somewhere prominently and updated on a daily basis. We will be making use of the wordnik
API (sign up for an API key at https://www.wordnik.com/signup):
- The first step is to install the
wordnik
API client forpython3
:
git clone https://github.com/wordnik/wordnik-python3.git       cd wordnik-python3/       sudo python3 setup.py install
Note
There are restrictions on the wordnik API usage. Refer to the API documentation for more details.
- Let's review writing our first example using the
wordnik
 Python client. In order to fetch the word of the day, we need to initialize theWordsApi
class. According to the API documentation, this could be done as follows:
      # sign up for an API key       API_KEY = 'API_KEY'       apiUrl = 'http://api.wordnik.com/v4'       client = swagger.ApiClient(API_KEY, apiUrl)       wordsApi = WordsApi.WordsApi(client)
- Now that the...