Skip to content

Instantly share code, notes, and snippets.

@earino
Created December 29, 2014 02:56
Show Gist options
  • Save earino/9bd9ef2f618cf76b8b5f to your computer and use it in GitHub Desktop.
Save earino/9bd9ef2f618cf76b8b5f to your computer and use it in GitHub Desktop.
using rvest
library(rvest)
tables <- html("http://www.sherdog.com/stats/fightfinder?SearchTxt=anderson+silva") %>%
html_table(fill = FALSE, header = TRUE)
fighters <- tables[[2]]
names(fighters) <- c("pic", "name", "nickname", "height", "weight", "association")
fighters$name # contains just the names, I really want the links also so i can get their detail data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment