Learn R Programming

N2H4 (version 0.5.9)

getContentTitle: Get Content Title

Description

Get naver news Title from link.

Usage

getContentTitle(
  html_obj,
  title_node_info = "div.article_info h3",
  title_attr = ""
)

Arguments

html_obj

"xml_document" "xml_node" using read_html function.

title_node_info

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

title_attr

if you want to get attribution text, please write down here.

Value

Get character title.

Examples

Run this code
# NOT RUN {
  print(news_url_ex)
  hobj <- xml2::read_html(news_url_ex)
  getContentTitle(hobj)
  
# }

Run the code above in your browser using DataLab