I am trying to load wikipedia\'s data on US Supreme Court Justices into R:
library(rvest) html = html(\"http://en.wikipedia.org/wiki/List_of_Justices_of_the
You could use rvest
library(rvest) html("http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States")%>% html_nodes("span+ a") %>% html_text()
It's not perfect so you might want to refine the css selector but it gets you fairly close.