Skip to content

Instantly share code, notes, and snippets.

@Comamoca
Comamoca / threaded_download.py
Last active March 1, 2022 08:54 — forked from chandlerprall/threaded_download.py
Small Python multi-threaded file downloader
import urllib.request, urllib.parse, urllib.error
import threading
from queue import Queue
import sys, os, re
class ThreadedDownload(object):
REGEX = {"hostname_strip": re.compile(".*\..*?/", re.I)}