Skip to content

Bulk asynchronous downloader for multiple file hosts

Simplify

Julesf8c19ad4532b
diff --git a/downloader.py b/downloader.py
index 717ffbac5..8caddd9c1 100644
--- a/downloader.py
+++ b/downloader.py
@@ -7,17 +7,12 @@ import re
from colorama import Fore, Style
from geturls import Extrair_Links
from multiprocessing import Pool
-from bs4 import BeautifulSoup, SoupStrainer
+from bs4 import BeautifulSoup
import multiprocessing
import settings
-class Error(Exception):
- """Base class for exceptions in this module."""
- pass
-
-
-class SizeError(Error):
+class SizeError(Exception):
"""Exception raised for errors in the input.
Attributes:
expression -- input expression in which the error occurred
diff --git a/geturls.py b/geturls.py
index a0c4856f5..5e8994273 100644
--- a/geturls.py
+++ b/geturls.py
@@ -1,6 +1,5 @@
import requests
-import os
-from bs4 import BeautifulSoup, SoupStrainer
+from bs4 import BeautifulSoup
videoExtensions = ['.mp4', '.wmv', '.m4v', '.mov']