mythsman / hexo-douban

:cd: a Hexo plugin that helps you generate content for Douban books, movies, music, and games.
MIT License
462 stars 57 forks source link

1.0.8无法爬取书,电影和游戏正常 #50

Closed Sanarous closed 5 years ago

Sanarous commented 5 years ago

$ hexo douban
INFO Start processing
INFO 0 books have been loaded in 337 ms
INFO 305 movies have been loaded in 13031 ms
INFO 37 games have been loaded in 1837 ms
INFO Generated: books/index.html
INFO Generated: movies/index.html
INFO Generated: games/index.html

用的是hexo主题,不是显示问题,而是只有书爬不到。。。然后用了作者的user信息去爬,结果如上也是爬不到。。

abelsu7 commented 5 years ago

同上。直接请求books-generator.js里面的接口,返回invalid_apikey的错误:

{"msg":"invalid_apikey","code":104,"request":"GET \/v2\/book\/user\/abelsu7\/collections"}
mythsman commented 5 years ago

这。。我估摸着是douban加了鉴权。。。看上去很蛋疼。。。

abelsu7 commented 5 years ago

https://book.douban.com/people/<user>/wish这个接口现在可用,应该可以像movies-generator.jsgames-generator.js里那样直接解析 HTML 文档

mythsman commented 5 years ago

@abelsu7 有空我搞一搞,要不你来搞搞?

abelsu7 commented 5 years ago

@abelsu7 有空我搞一搞,要不你来搞搞?

我看下哈,会改的话就过来提pull request

SwayYe commented 5 years ago

同样的问题,希望大佬能早点解决,感谢!!

mythsman commented 5 years ago

刚尝试修复了下,试着升下1.1.1版本,如有问题及时反馈哈。