powered by
Get naver news published datetime from link.
getContentDatetime( html_obj, datetime_node_info = "span.t11", datetime_attr = "", getEdittime = TRUE )
"xml_document" "xml_node" using read_html function.
Information about node names like tag with class or id. Default is "div.article_info h3" for naver news title.
if you want to get attribution text, please write down here.
if TRUE, can get POSIXlt type datetime length 2 means published time and final edited time. if FALSE, get Date length 1.
Get POSIXlt type datetime.
# NOT RUN { print(news_url_ex) hobj <- rvest::read_html(news_url_ex) getContentDatetime(hobj) # }
Run the code above in your browser using DataLab