Last active
August 29, 2015 14:24
-
-
Save Ray901/ff0ec1a953442dde570a to your computer and use it in GitHub Desktop.
scrape taiwan population From web wiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm(list=ls()) | |
library(rvest) | |
webwiki <- html("https://zh.wikipedia.org/wiki/%E8%87%BA%E7%81%A3%E8%A1%8C%E6%94%BF%E5%8D%80%E4%BA%BA%E5%8F%A3%E5%88%97%E8%A1%A8") | |
population <- webwiki %>% | |
html_nodes("#bodyContent table") %>% | |
html_table() | |
#View(population[[1]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment