Uses coroutines to download urls
Note: Greedy and built for speed. [10K cdn hosted urls; 0.5GB Total data; <5 minutes; M1 laptop]
Usage: async_download [COMMAND] <OPTIONS>
Commands:
headers - hit urls with the head request
download - download urls
`headers` Options:
--header TEXT Headers to extract (default: Content-Length, Server)
--batch-size INTEGER number of concurrent requests (default: 1000)
--help Show this message and exit.
`download` Options:
--batch-size INTEGER number of concurrent requests (default: 1000)
--execute required to do something
--help Show this message and exit.
- Free software: MIT license
- Documentation: https://async-download.readthedocs.io.
pipx install async-download
async_download --help
python -mvenv .venv --prompt .
. ./.venv/bin/activate
pip install --editable .[testing]
make test
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage
project template.
The main loop was taken from