getCommentHistory: Get Comment History

View source: R/getCommentHistory.R

getCommentHistoryR 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)

N2H4 documentation built on Sept. 15, 2022, 5:14 p.m.