I modified the code used here (https://decisionstats.com/2012/04/07/cricinfo-statsguru-database-for-statistical-and-graphical-analysis/ ) with the code used here (http://reed.edu/data-at-reed/resources/R/rvest.html ) to get a more updated version of Cricket Analysis but using the rvest package by Hadley W
Note you can change the url to make the records , the team , the type of record (batting or fielding)
I found it to be the third html table in the field by just testing it around
library(rvest) page=html("http://stats.espncricinfo.com/ci/engine/stats/index.html?class=1;team=6;template=results;type=batting") data % html_nodes("table") %>% .[[3]] %>% html_table() head(data)
also see
http://codeforsacramento.org/blog/tutorial/2015/01/31/webscraping-with-r.html
http://renkun.me/pipeR-tutorial/Examples/rvest.html