powered by
Get naver news comments if you want to get data only comment, enter command like below. getComment(url)$result$commentList[[1]]
getComment( turl = url, pageSize = 10, page = 1, sort = c("favorite", "reply", "old", "new", "best"), type = c("df", "list") )
like <https://news.naver.com/main/read.nhn?mode=LSD&mid=shm&sid1=100&oid=056&aid=0010335895>.
is a number of comments per page. defult is 10. max is 100.
is defult is 1.
you can select favorite, reply, old, new. favorite is defult.
type return df or list. Defult is df. df return part of data not all.
a [tibble][tibble::tibble-package]
# NOT RUN { print(news_url_ex) getComment(news_url_ex) # }
Run the code above in your browser using DataLab