Learn R Programming

N2H4 (version 0.6.5)

getContentPress: Get Content Press name.

Description

Get naver news press name from link.

Usage

getContentPress(
  html_obj,
  press_node_info = "div.media_end_head_top a img",
  press_attr = "title"
)

Value

Get character press.

Arguments

html_obj

"xml_document" "xml_node" using read_html function.

press_node_info

Information about node names like tag with class or id. Default is "div.article_info h3" for naver news title.

press_attr

if you want to get attribution text, please write down here. Defalt is "title".

Examples

Run this code
if (FALSE) {
  hobj <- rvest::read_html("https://n.news.naver.com/mnews/article/214/0001195110?sid=103")
  getContentPress(hobj)
  }

Run the code above in your browser using DataLab