File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def get_openlibrary_data(olid: str = "isbn/0140328726") -> dict:
27
27
return requests .get (f"https://openlibrary.org/{ new_olid } .json" ).json ()
28
28
29
29
30
- def summerize_book (ol_book_data : dict ) -> dict :
30
+ def summarize_book (ol_book_data : dict ) -> dict :
31
31
"""
32
32
Given Open Library book data, return a summary as a Python dict.
33
33
@@ -70,7 +70,7 @@ def summerize_book(ol_book_data: dict) -> dict:
70
70
print (f"\n Searching Open Library for ISBN: { isbn } ...\n " )
71
71
72
72
try :
73
- book_summary = summerize_book (get_openlibrary_data (f"isbn/{ isbn } " ))
73
+ book_summary = summarize_book (get_openlibrary_data (f"isbn/{ isbn } " ))
74
74
print ("\n " .join (f"{ key } : { value } " for key , value in book_summary .items ()))
75
75
except JSONDecodeError : # Workaround for requests.exceptions.RequestException:
76
76
print (f"Sorry, there are no results for ISBN: { isbn } ." )
You can’t perform that action at this time.
0 commit comments