Learn R Programming

N2H4 (version 0.6.5)

getContentTitle: Get Content Title

Description

Get naver news Title from link.

Usage

getContentTitle(
  html_obj,
  title_node_info = "h2.media_end_head_headline",
  title_attr = ""
)

Value

Get character title.

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.

Examples

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

Run the code above in your browser using DataLab