[英]Google Books API - How do I separate Book from Book Edition?
I'm using Google Book Search API to add missings bits and pieces to my database. 我正在使用Google Book Search API向数据库中添加缺失片段。
Problem is that The API gives me back a list of book editions, and not reference to the original book itself. 问题在于该API给我提供了书籍版本的列表,而不是参考原始书籍本身。
The data I'm trying to get is this: 我想要获取的数据是这样的:
Original title: The Hobbit
原标题: 霍比特人
Original year of publication: 1937
出版的最初年份: 1937
Can anyone help? 有人可以帮忙吗?
Just in case anyone asks: I'm developing this in Python. 以防万一有人问:我正在用Python开发它。
Try with this snippet: 尝试使用以下代码段:
entry = self.service.get_by_google_id("XV0NAQAAIAAJ")
print entry.dc_title[0].text
print entry.date.text
Result is: 结果是:
The hobbit 霍比特人
1937 1937年
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.