R语言网页爬虫

library(rvest) url0 <- 'http://news.sina.com.cn/china/' web <- read_html(url0) News <- web %>% html_nodes('div.news-item h2 a') #---获得新闻标题--- Title <- News%>%html_text() #---获得新闻时间--- Time <- web %>%
相关文章
相关标签/搜索