Skip to content

Bulk asynchronous downloader for multiple file hosts

clean up.

Jules-WinnfieldX68e01074e29d
diff --git a/main.py b/main.py
index 78acf32ab..b1bd3d210 100644
--- a/main.py
+++ b/main.py
@@ -72,16 +72,18 @@ async def main():
cookies, content_object = scrape(urls)
if not content_object:
logging.error(f'ValueError No links: {content_object}')
- raise ValueError('No links found, check the URL.txt\nIf the link works in your web browser, please open an issue ticket with me.')
+ raise ValueError('No links found, check the URL.txt\nIf the link works in your web browser, '
+ 'please open an issue ticket with me.')
clear()
downloaders = get_downloaders(content_object, cookies=cookies, folder=Path(DOWNLOAD_FOLDER))
for downloader in downloaders:
await downloader.download_content(headers=CaseInsensitiveDict())
log('Finished scraping. Enjoy :)', Fore.WHITE)
- log('If you have ".download" files remaining, rerun this program. You most likely ran into download attempts limit', Fore.WHITE)
+ log('If you have ".download" files remaining, rerun this program. You most likely ran into download attempts limit',
+ Fore.WHITE)
repr(readchar.readchar())
if __name__ == '__main__':
- asyncio.get_event_loop().run_until_complete(main())
\ No newline at end of file
+ asyncio.get_event_loop().run_until_complete(main())