【发布时间】:2017-04-15 20:09:37
【问题描述】:
当我尝试通过 isbn 代码查找书籍时遇到一个奇怪的问题。
当我尝试在谷歌图书网站中搜索它时,我得到了这个结果:
没关系。但是当我尝试搜索这个相同的 isbn 代码时,请求谷歌图书 api 如下:
https://www.googleapis.com/books/v1/volumes?q=isbn:8841274573
作为回应,我的结果与使用谷歌网站的搜索和我的目标完全不同:
{
"kind": "books#volumes",
"totalItems": 1,
"items": [
{
"kind": "books#volume",
"id": "F1mCAQAACAAJ",
"etag": "h72WBWNyItw",
"selfLink": "https://www.googleapis.com/books/v1/volumes/F1mCAQAACAAJ",
"volumeInfo": {
"title": "Kitāb al-Thiqāt",
"authors": [
"Muḥammad Ibn Ḥibbān"
],
"publishedDate": "1988",
"industryIdentifiers": [
{
"type": "OTHER",
"identifier": "OCLC:33995748"
}
],
"readingModes": {
"text": false,
"image": false
},
"printType": "BOOK",
"categories": [
"Hadith"
],
"maturityRating": "NOT_MATURE",
"allowAnonLogging": false,
"contentVersion": "preview-1.0.0",
"panelizationSummary": {
"containsEpubBubbles": false,
"containsImageBubbles": false
},
"language": "it",
"previewLink": "http://books.google.it/books?id=F1mCAQAACAAJ&dq=isbn:8841274573&hl=&cd=1&source=gbs_api",
"infoLink": "http://books.google.it/books?id=F1mCAQAACAAJ&dq=isbn:8841274573&hl=&source=gbs_api",
"canonicalVolumeLink": "https://books.google.com/books/about/Kit%C4%81b_al_Thiq%C4%81t.html?hl=&id=F1mCAQAACAAJ"
},
"saleInfo": {
"country": "IT",
"saleability": "NOT_FOR_SALE",
"isEbook": false
},
"accessInfo": {
"country": "IT",
"viewability": "NO_PAGES",
"embeddable": false,
"publicDomain": false,
"textToSpeechPermission": "ALLOWED",
"epub": {
"isAvailable": false
},
"pdf": {
"isAvailable": false
},
"webReaderLink": "http://books.google.it/books/reader?id=F1mCAQAACAAJ&hl=&printsec=frontcover&output=reader&source=gbs_api",
"accessViewStatus": "NONE",
"quoteSharingAllowed": false
}
}
]
}
有没有办法区分(可能在请求参数中)具有不同 isbn 的不同书籍?
在documentation 中没有任何与此特殊参数相关的引用。 (如果存在)
提前致谢。
【问题讨论】:
-
我也遇到了类似的问题,你找到解决办法了吗?