acdzh / douban-book-api Goto Github PK
View Code? Open in Web Editor NEW第三方豆瓣读书 api 接口
License: MIT License
第三方豆瓣读书 api 接口
License: MIT License
你好,我想问一下,我安装了油猴的刷新缓存插件,但是我输入的api server 是我的nas地址加端口号,他好像并没有保存?每次刷新豆瓣页面都提示我输入api server,就是我不输入,也得保存到nas的cache里的数据库,这是怎么回事?谢谢!
api的搜索url是:{HOST}/search?text=<text>
而插件请求的url是:{HOST}/search/<text>
,代码中的位置是:
douban-book-api/calibre/__init__.py
Line 115 in eafa499
isbn: 9787121309120
豆瓣:https://book.douban.com/subject/26974266/
// 20220913095544
// http://127.0.0.1:3000/book?isbn=9787121309120
{
"success": false,
"message": {
isbn: 9787302209935
豆瓣:https://book.douban.com/subject/4033320/
// 20220913095749
// http://127.0.0.1:3000/book?isbn=9787302209935
{
"success": false,
"message": {
}
}
不知道是拼错了还是有意为之?
isbn: 9787540483913
豆瓣链接: https://book.douban.com/subject/27194504/
<-- GET /isbn/9787540483913
xxx GET /isbn/9787540483913 500 1,720ms -
TypeError: Cannot read property 'data' of undefined
at D:\DEV\douban-book-api\douban\libs\parseHtml.js:64:99
at Array.map (<anonymous>)
at getAuthorIntro (D:\DEV\douban-book-api\douban\libs\parseHtml.js:64:70)
at parseHTML (D:\DEV\douban-book-api\douban\libs\parseHtml.js:216:19)
at getBookInfoByHtml (D:\DEV\douban-book-api\douban\info.js:19:18)
at getBookInfoByUrl (D:\DEV\douban-book-api\douban\info.js:34:10)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async getBookInfoByIsbn (D:\DEV\douban-book-api\douban\info.js:42:10)
at async D:\DEV\douban-book-api\app.js:172:22
at async bodyParser (D:\DEV\douban-book-api\node_modules\koa-bodyparser\index.js:95:5)
请问能不能把
"https://book.douban.com/j/subject_suggest?q="
这个查询加进去呀,这个接口是搜索图书时实时获取图书列表的,获取的一般比较粗略
非常感谢作者!请问是否有建议的抓取频率?想大致知道一个量级,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.