- Visit https://www.python.org/downloads/ and download version 3.8.5
- Make sure you have pip3 installed:
$ pip --version - You should see something like:
pip 20.2.3 from c:\python\lib\site-packages\pip (python 3.8) - If you are out of date (not version 20.2.3), you can run:
$ pip install --upgrade pip - Install the python library for web requests:
$ pip install requests - Verify your installation by running
>>> import requests
#### If the library is not found, try reinstalling
>>> quit()
(For more public APIs, take a look at https://github.com/public-apis/public-apis)
- Navigate to your project folder and clone the GitHub repository for this project:
$ cd ~/projects
$ git clone https://github.com/letourneau-ACM/api
- Open the api_demo.py file in IDLE
- In your browser, visit https://openlibrary.org/developers/api
- Click on the ‘books’ API link
- Look up your favorite book and GET the data using the API