Skip to content

Instantly share code, notes, and snippets.

View carlosadean's full-sized avatar

Carlos Adean carlosadean

View GitHub Profile
@chandlerprall
chandlerprall / threaded_download.py
Created June 9, 2011 17:41
Small Python multi-threaded file downloader
import urllib2
import threading
from Queue import Queue
import sys, os, re
class ThreadedDownload(object):
REGEX = {
'hostname_strip':re.compile('.*\..*?/', re.I)
}