getCommentHistory {N2H4} | R Documentation |
Get Comment History
Description
Get naver news comments on user histories.
Usage
getCommentHistory(turl, commentNo, count = 10, type = c("df", "list"))
Arguments
turl |
character. News article on 'Naver' such as <https://n.news.naver.com/mnews/article/001/0009205077?sid=102>. News articl url that is not on Naver.com domain will generate an error. |
commentNo |
Parent Comment No. |
count |
is a number of comments. Defualt is 10. "all" works to get all comments. |
type |
type return df or list. Defult is df. df return part of data not all. |
Value
a [tibble][tibble::tibble-package]
Examples
## Not run:
cno <- getComment("https://n.news.naver.com/mnews/article/421/0002484966?sid=100")
getCommentHistory("https://n.news.naver.com/mnews/article/421/0002484966?sid=100",
cno$commnetNo[1])
## End(Not run)
[Package N2H4 version 0.8.4 Index]