Skip to content

Instantly share code, notes, and snippets.

@funnythingz
Created November 17, 2013 02:24
Show Gist options
  • Save funnythingz/7508295 to your computer and use it in GitHub Desktop.
Save funnythingz/7508295 to your computer and use it in GitHub Desktop.
get pokemon xy sprites script
<?php
for($i = 1; $i <= 718; $i++) {
if($i < 10) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/00".$i.".png"."\n");
}elseif($i >= 10 && $i < 100) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/0".$i.".png"."\n");
}else{
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/".$i.".png"."\n");
}
}
echo "completed!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment