SHARE
TWEET

Untitled

a guest Jan 17th, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from requests import get
  2. from threading import Thread
  3. import sys
  4.  
  5. def download(num, url):
  6.     with open(f'{num}.html', 'wb') as f:
  7.         f.write(get(url).content)
  8.  
  9. if name == 'main':
  10.     for num, url in enumerate(sys.argv[1:]):
  11.         Thread(target=download, args=(num, url)).start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top