Skip to content

Instantly share code, notes, and snippets.

View e-io's full-sized avatar
😺
Meow!

Pavel 宝尔米 e-io

😺
Meow!
View GitHub Profile
@e-io
e-io / request-authors-by-isbn-with-gbooks-api.py
Created September 21, 2023 10:32
Show authors of a book by ISBN with Google Books API (Python).
# How to run:
# python3 request-authors-by-isbn-with-gbooks-api.py
# just write required isbn in the "isbn = ..." line below
import json
import requests
# example of isbn. It can be 10 digits or 13 digits. It can be with hyphens or without them.
isbn = "978-1-119-70711-0"
@IT102Gists
IT102Gists / isbn_lookup.py
Last active September 24, 2023 16:18
Python CodeAlong: use the Google Books API to retrieve and display information about a book.
# Python's built-in module for encoding and decoding JSON data
import json
# Python's built-in module for opening and reading URLs
from urllib.request import urlopen
# sample ISBN for testing: 1593276036
while True:
# create getting started variables
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Profiled execution.