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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s