Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TitanX101/87a31ed5eaf4f1a85e7f51c5a3275c60 to your computer and use it in GitHub Desktop.
Save TitanX101/87a31ed5eaf4f1a85e7f51c5a3275c60 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