import os
fjson='prep.json'
with open(fjson,'r') as f:
l=[l.split('},{') for l in f][0]
fnames=[i.split('"')[7] for i in l]
urls=[i.split('"')[-2] for i in l]
n=len(urls)
for i in range(n):
if os.path.isfile(fnames[i]):continue
tmp=urls[i].split('/')[-1]
os.system('/usr/bin/wget -q '+urls[i]+';mv '+tmp+' '+fnames[i])
print(fnames[i])