Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/get_book_reviews.R
获取豆瓣图书的评论文章.
1 | get_book_reviews(bookid,results=100,fresh=10,count=10,verbose=TRUE,...)
|
bookid |
豆瓣书籍的id号,一串数字,如2567698 |
results |
获取评论的数量,默认100 |
fresh |
页面异常时最大刷新次数,默认10 |
count |
每页review_uri数量,默认25,最大25 |
verbose |
若 |
一个data.frame,各列为:
review_uri |
评论主页URL |
title |
评论文章名称 |
published |
文章发表时间 |
author |
文章作者昵称 |
author_uri |
作者豆瓣URI |
review |
评论文章详细内容 |
rating |
作者对书籍的评分 |
useful |
被评为useful的次数 |
unuseful |
被评为unuseful的次数 |
若results不是count的倍数,则获取到的数量是ceiling(results/count)*count
.
qxde01<qxde01@gmail.com>
1 2 | ## http://book.douban.com/subject/2567698/reviews
## Not run: out<-get_book_reviews(bookid=2567698,results=500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.