Improving your vocabulary using the Raspberry Pi
As an example of self-improvement using the Raspberry Pi, we will implement an example that retrieves the word of the day using the Wordnik API (https://www.wordnik.com/).
Prepare for lift off
We need to install the Wordnik Python client (distributed under the Apache License) available as a Python package:
sudo pip install wordnik
The next step is to obtain an API key to make use of the API. This can be obtained by registering for an account with Wordnik and requesting an API key (http://developer.wordnik.com/).
Once the installation is complete, it is time to review the example.
Note
The Wordnik API is merely being demonstrated as an example. Refer to the API terms of agreement to determine how the API can be used in a commercial application.
Engage thrusters
- Let's review an example that fetches the word of the day using the Wordnik API. The first step is to import the Wordnik Python client:
from wordnik import *
- The next step is to create a...