Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Created August 13, 2016 00:12
Show Gist options
  • Save mikebranstein/ce813974dd3ef97d5becb1e7b2e56a00 to your computer and use it in GitHub Desktop.
Save mikebranstein/ce813974dd3ef97d5becb1e7b2e56a00 to your computer and use it in GitHub Desktop.
Caught em all
$baseUrl = "http://assets.pokemon.com/assets/cms2/img/pokedex/full/"
New-Item .\pokedex -type directory
for ($i = 1; $i -lt 721; $i++) {
$fileName = $i.ToString("000") + ".png"
$url = $baseUrl + $fileName
$output = "pokedex\" + $fileName
Write-Host $fileName
Invoke-WebRequest -Uri $url -OutFile $output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment