getContentPress: Get Content Press name.

Description Usage Arguments Value Examples

View source: R/getContent.R

Description

Get naver news press name from link.

Usage

1
2
3
4
5
getContentPress(
  html_obj,
  press_node_info = "div.article_header div a img",
  press_attr = "title"
)

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".

Value

Get character press.

Examples

1
2
3
4
  print(news_url_ex)
  hobj <- xml2::read_html(news_url_ex)
  getContentPress(hobj)
  

N2H4 documentation built on March 26, 2020, 7:59 p.m.