Usage: The below code pulls country-wise player profile.
Country code from below url. __http://www.espncricinfo.com/story/_/id/18791072/all-cricket-teams-index
Country-wise player list from below url. __http://www.espncricinfo.com/india/content/player/country.html?country=<>
library(cricket)
countries <- countries()
for (country in countries)
{
players <- player_ids(country)
for (player in players)
{
player_profile("<file path to store player profile>", player)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.