Skip to content

Bulk asynchronous downloader for multiple file hosts

Update downloader.py

Jules-WinnfieldX129777ca9983
diff --git a/downloader.py b/downloader.py
index 18c020162..8714d6f25 100644
--- a/downloader.py
+++ b/downloader.py
@@ -31,6 +31,8 @@ if os.stat("URLs.txt").st_size == 0:
file_object = open("URLs.txt", "r")
for line in file_object:
+ if line in ['\n', '\r\n']:
+ continue
url = line.rstrip()
n = requests.get(url, headers=hearders)