Created
February 23, 2016 21:07
-
-
Save MrPowerGamerBR/38b1bb9af4a3975cf8cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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