Skip to content

Instantly share code, notes, and snippets.

@MrPowerGamerBR
Created February 23, 2016 21:07
Show Gist options
  • Save MrPowerGamerBR/38b1bb9af4a3975cf8cb to your computer and use it in GitHub Desktop.
Save MrPowerGamerBR/38b1bb9af4a3975cf8cb to your computer and use it in GitHub Desktop.
import urllib
import os.path
with open('skins.txt') as fp:
for line in fp:
try:
print line
if not (os.path.isfile("skins/" + line.rstrip() + ".png")): {
urllib.urlretrieve("http://158.69.120.5/assets/php/avatar.php?u=" + line.rstrip() + "&s=16", "skins/" + line.rstrip() + ".png")
}
except:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment