python - 如何获取 Google Books API 中的类别列表?

标签 python api google-api google-api-python-client google-books

我正在搜索一个已经回答过的问题,但找不到,所以如果我不知何故错过了请原谅我。

我正在使用 Google Books API,我知道我可以按特定类别搜索图书。

我的问题是,如何从 API 获取所有可用类别? 我查看了 API 文档,但找不到对此的任何提及。

最佳答案

Google 图书 API 没有用于返回与图书本身无关的类别的端点。

Google Books api 仅用于列出图书。你可以

  • 搜索并浏览与给定查询匹配的图书列表。
  • 查看有关图书的信息,包括元数据、可用性和价格,以及指向预览页面的链接。
  • 管理您自己的书架。

你可以看到一本书的类别你不能得到整个系统中可用类别的列表

您可能有兴趣知道自 2012 年以来这一直在他们的待办事项列表中 category list

We have numerous requests for this and we're investigating how we can properly provide the data. One issue is Google does not own all the category information. "New York Times Bestsellers" is one obvious example. We need to first identify what we can publish through the API.

变通

i worked around it by implementing my own category list mechanism so i can pull all categories that exists in my app's database. (unfortunately, the newly announced ScriptDb deprecation means my whole system will go to waste in a couple of monthes anyway... but that's another story)

关于python - 如何获取 Google Books API 中的类别列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48660015/

相关文章:

python - 调用使用类中另一个方法的变量的方法

python - 如何在 python 中编程 Protocol Buffer 以通过套接字发送消息

javascript - Node 和 Redis : Redis Clients

google-api - 所有可能的谷歌天气 API "Conditions"的列表

python-selenium 和 ChromeDriver : Can't open tab to control it

ruby-on-rails - Google 日历服务帐户 API 导致授权无效

api - Gitlab API : How to generate the private token

javascript - 谷歌 api 刷新 token 返回 null 与 react-google-login

javascript - 谷歌翻译 API 文本到语音 : http requests forbidden

python - 实际上,HRD 中的 "eventual consistency"最终是多少?