Skip to content

Instantly share code, notes, and snippets.

@Kais-Alabdallah
Kais-Alabdallah / isbn_lookup.py
Created June 4, 2021 20:00 — forked from AO8/isbn_lookup.py
A simple ISBN lookup that uses Python and the Google Books API to display basic information about a book.
import urllib.request
import json
import textwrap
while True:
base_api_link = "https://www.googleapis.com/books/v1/volumes?q=isbn:"
user_input = input("Enter ISBN: ").strip()
with urllib.request.urlopen(base_api_link + user_input) as f: