Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Last active April 18, 2016 18:49
Show Gist options
  • Save msfidelis/e9bf68bfae473e99555732c3951672ef to your computer and use it in GitHub Desktop.
Save msfidelis/e9bf68bfae473e99555732c3951672ef to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
file = 'files.txt'
nullpath = '/dev/null/tar.tar'
def download():
fd = open(file, 'r')
urls = fd.readlines()
while True:
for url in urls:
cmd = "wget %s -O %s " % (url, nullpath)
subprocess.check_output(cmd, shell=True)
download()