Skip to content

Commit 8bbd2f1

Browse files
Update google_books.py
1 parent ea28c79 commit 8bbd2f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

consuming-apis-python/google_books.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
# The response will contain a list of books that match your query.
1414
response = requests.get(endpoint, params=params).json()
1515
for book in response["items"]:
16-
# In order to fetch the title, published date and description, you first need to fetch the volume.
16+
# In order to fetch the title, published date and description,
17+
# you first need to fetch the volume.
1718
volume = book["volumeInfo"]
1819

19-
# You can fetch these and other attributes from the book using the specific volume
20+
# You can fetch these and other attributes from the book using
21+
# the specific volume
2022
title = volume["title"]
2123
published = volume["publishedDate"]
2224
description = volume["description"]

0 commit comments

Comments
 (0)