Skip to content

Commit

Permalink
出版年月日を分けて保持するようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
nesosuke committed Mar 21, 2020
1 parent 3d9936d commit 7502d2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openbd_api.py
Expand Up @@ -9,11 +9,13 @@
Title = BookInfo.get("title")
Author = BookInfo.get("author")
Publisher = BookInfo.get("publisher")
Published_at = BookInfo.get("pubdate")
Published_at_yyyy = BookInfo.get("pubdate")[0:4]
Published_at_mm = BookInfo.get("pubdate")[4:6]
Published_at_dd = BookInfo.get("pubdate")[6:8]
Cover = BookInfo.get("cover")

print(Title)
print(Author)
print(Publisher)
print(Published_at)
print(Published_at_yyyy + "." + Published_at_mm + "." + Published_at_dd)
print(Cover)

0 comments on commit 7502d2e

Please sign in to comment.