Skip to content

Bulk asynchronous downloader for multiple file hosts

Decrease wait time on bunkr

Jules-WinnfieldXdffad7319107
diff --git a/Pipfile b/Pipfile
index ba417a920..feaac775b 100644
--- a/Pipfile
+++ b/Pipfile
@@ -39,7 +39,7 @@ tldextract = "==3.2.0"
typing-extensions = "==4.1.1"
urllib3 = "==1.26.9"
"zope.interface" = "==5.4.0"
-beautifulsoup4 = "~=4.10.0"
+beautifulsoup4 = "==4.11.0"
Automat = "==20.2.0"
Protego = "==0.2.1"
PyDispatcher = "==2.0.5"
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index 34c48a9aa..0d63c83e2 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -55,7 +55,7 @@ async def throttle(self, url: URL) -> None:
self.throttle_times[key] = now
return
- remaining = delay - elapsed + 1
+ remaining = delay - elapsed + 0.25
log_string = '\nDelaying request to %s for %.2f seconds.' % (host, remaining)
logger.debug(log_string)
@@ -85,7 +85,7 @@ class Downloader:
self.max_workers = max_workers
self._semaphore = asyncio.Semaphore(max_workers)
- self.delay = {'media-files.bunkr.is': 2}
+ self.delay = {'media-files.bunkr.is': 0.5}
self.throttle_times = {}
"""Changed from aiohttp exceptions caught to FailureException to allow for partial downloads."""
diff --git a/requirements.txt b/requirements.txt
index 60dd3f3d3..dc613acff 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,6 +4,7 @@ aiosignal==1.2.0
async-timeout==4.0.2
attrs==21.4.0
Automat==20.2.0
+beautifulsoup4==4.11.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.12
@@ -36,4 +37,3 @@ typing_extensions==4.1.1
urllib3==1.26.9
yarl==1.7.2
zope.interface==5.4.0
-beautifulsoup4~=4.10.0
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index ec07a9c1f..4211093f2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -13,16 +13,16 @@ project_urls =
[options]
python_requires = >=3.7
install_requires =
- aiofiles
- aiohttp
- certifi
- colorama
+ aiofiles>=0.8.0
+ aiohttp>=3.8.1
+ certifi>=2021.10.8
+ colorama>=0.4.4
gofile-client>=1.0.1
- requests
- tqdm
- yarl
- beautifulsoup4
- tldextract
+ requests>=2.27.1
+ tqdm>=4.64.0
+ yarl>=1.7.2
+ beautifulsoup4>=4.11.0
+ tldextract>=3.2.0
[options.entry_points]
console_scripts =