Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Decrease wait time on bunkr
Jules-WinnfieldXdffad7319107
diff --git a/Pipfile b/Pipfileindex 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.pyindex 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] = nowreturn- remaining = delay - elapsed + 1+ remaining = delay - elapsed + 0.25log_string = '\nDelaying request to %s for %.2f seconds.' % (host, remaining)logger.debug(log_string)@@ -85,7 +85,7 @@ class Downloader:self.max_workers = max_workersself._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.txtindex 60dd3f3d3..dc613acff 100644--- a/requirements.txt+++ b/requirements.txt@@ -4,6 +4,7 @@ aiosignal==1.2.0async-timeout==4.0.2attrs==21.4.0Automat==20.2.0+beautifulsoup4==4.11.0certifi==2021.10.8cffi==1.15.0charset-normalizer==2.0.12@@ -36,4 +37,3 @@ typing_extensions==4.1.1urllib3==1.26.9yarl==1.7.2zope.interface==5.4.0-beautifulsoup4~=4.10.0\ No newline at end of filediff --git a/setup.cfg b/setup.cfgindex ec07a9c1f..4211093f2 100644--- a/setup.cfg+++ b/setup.cfg@@ -13,16 +13,16 @@ project_urls =[options]python_requires = >=3.7install_requires =- aiofiles- aiohttp- certifi- colorama+ aiofiles>=0.8.0+ aiohttp>=3.8.1+ certifi>=2021.10.8+ colorama>=0.4.4gofile-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 =