Skip to content

Instantly share code, notes, and snippets.

@lovelybigdata
Created September 17, 2015 17:08
Show Gist options
  • Select an option

  • Save lovelybigdata/20f71f0089eada9353c0 to your computer and use it in GitHub Desktop.

Select an option

Save lovelybigdata/20f71f0089eada9353c0 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