Skip to content

Commit

Permalink
auto poke pic download + to int
Browse files Browse the repository at this point in the history
  • Loading branch information
station committed Jul 26, 2016
1 parent e0841a4 commit 2205836
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pics/downloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/python
import urllib

for i in range(1, 252):
nr = str(i)
if len(nr) == 1:
nr = "00"+nr
if len(nr) == 2:
nr = "0"+nr
url = "http://serebii.net/pokemongo/pokemon/"+nr+".png"

urllib.urlretrieve(url, str(i)+".png")

0 comments on commit 2205836

Please sign in to comment.