This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tested on 2.7.12 | |
# Recommend use of authbind for binding below 1024 | |
from SocketServer import ThreadingMixIn | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import ssl | |
import os, sys, pwd, grp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import * | |
def command(x): | |
return str(Popen(x.split(' '), stdout=PIPE).communicate()[0]) | |
def wget( uri ): | |
status = command( "wget " + uri ) | |
for chap in xrange( 34 ): | |
wget( "http://www.dspguide.com/CH" + str( chap + 1 ) + ".PDF" ) |
NewerOlder