Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import os
- from multiprocessing.dummy import Pool as ThreadPool
- def main():
- pool = ThreadPool(32) #number of simotanious downloads to run
- pool.map(download, range (9078,11108)) #set this for the email numbers of the new leak,
- #first number is included then all numbers up to but not including the second number.
- def download(url):
- #print command is not entirely trhead safe, but any bugs it has wont crash or cause any real probmels other than looking funny sometimes
- print(url)
- if (not os.path.exists(str(url)+ ".eml")):
- r = requests.get("https://wikileaks.org/podesta-emails//get/" + str(url))
- with open(str(url) + ".eml", "wb") as code:
- code.write(r.content)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement