Skip to content

Instantly share code, notes, and snippets.

@lovelybigdata
Last active September 19, 2015 17:30
Show Gist options
  • Select an option

  • Save lovelybigdata/42c5afe9fb8020569d57 to your computer and use it in GitHub Desktop.

Select an option

Save lovelybigdata/42c5afe9fb8020569d57 to your computer and use it in GitHub Desktop.
library(rvest)
news_url="http://news.ltn.com.tw/list/BreakingNews"
title_css = html(news_url) %>% html_nodes(".picword") %>% html_text()
my_news = data.frame(title = title_css)
View(my_news)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment