Learn R Programming

N2H4 (version 0.8.4)

getCommentHistory: Get Comment History

Description

Get naver news comments on user histories.

Usage

getCommentHistory(turl, commentNo, count = 10, type = c("df", "list"))

Value

a [tibble][tibble::tibble-package]

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.

Examples

Run this code
if (FALSE) {
  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])
}

Run the code above in your browser using DataLab