Save as .Py Run

​import urllib

import os.path

first = 1

last = 1404

for next in range(first, last):

seq = “%08d” % next

local_fname = ‘./’+seq+’.EML.html’

if(os.path.isfile(local_fname) != True):

url = ‘http://dcleaks.com/emails/cApR/html/Clinton_Foundation/’+seq+’.EML.html’

print(“Getting %s” % (local_fname))

try:

urllib.urlretrieve(url, local_fname)

except:

print(“Skipping %s because timeout” % local_fname)

pass

2 thoughts on “Save as .Py Run”

Leave a Reply