This recipe uses a third-party Python module called requests. You can install the compatible version of this module by following the instructions from http://docs.python-requests.org/en/latest/user/install/. For example, you can use pip to install requests from the command line as follows:
$ pip install requests