SHARE
TWEET

getmissed.py

a guest Oct 6th, 2016 138 Never
  1. import urllib
  2. import os.path
  3. first = 1
  4. last = 1404
  5. for next in range(first, last):
  6.     seq = "%08d" % next
  7.     local_fname = './'+seq+'.EML.html'
  8.     if(os.path.isfile(local_fname) != True):
  9.         url = 'http://dcleaks.com/emails/cApR/html/Clinton_Foundation/'+seq+'.EML.html'
  10.         print("Getting %s" % (local_fname))
  11.         try:
  12.             urllib.urlretrieve(url, local_fname)
  13.         except:
  14.             print("Skipping %s because timeout" % local_fname)
  15.             pass
RAW Paste Data
Top