Program and module for download queue optimization using multi-thread
- Can be used as script and module
- Written in uncomplicated Python
- Easily download files in the fastest speed possible
- Easy to install
- Stupidly easy to use
- Very fast start up and response time
- Uses natives libs
- Option to organize your files
- Download 100 files in less than 40s
- Download files from everywhere
- Get real filename
- Supports HTTPS
Option 1: Pip
$ pip install DSDownload
$ git clone https://github.com/DiSiqueira/DSDownload.git
$ cd DSDownload/
$ python setup.py install
# Download a file
$ dsdownload https://github.com/DiSiqueira/DSDownload/archive/1.6.0.0.tar.gz
# Download 3 files using 2 Workers
$ dsdownload --workers 2 https://i.imgur.com/eUrbKtO.jpg https://i.imgur.com/9am20SK.jpg https://github.com/DiSiqueira/DSDownload/archive/1.6.0.0.tar.gz
# Download 3 files using 2 Workers and put on my-images folder
$ dsdownload --output my-images --workers 2 https://github.com/DiSiqueira/DSDownload/archive/1.6.0.0.tar.gz https://i.imgur.com/9am20SK.jpg https://i.imgur.com/KR06C.jpg
The module allows you to download url lists in your own Python programs without going through the command line. Here's an example of it's usage:
from DSDownload import DSDownload
urls = ['https://i.imgur.com/eUrbKtO.jpg', 'https://github.com/DiSiqueira/DSDownload/archive/1.6.0.0.tar.gz']
workers = 2
output = 'My-Files'
DSDownload.DSDownload(urls, workers, output)
Please use the issue tracker to report any bugs or file feature requests.
PRs are welcome. To begin developing, do this:
$ git clone --recursive [email protected]:DiSiqueira/DSDownload.git
$ cd DSDownload/DSDownload/
$ python DSDownload.py
- Create an issue to discuss about your idea
- [Fork it] (https://github.com/DiSiqueira/DSDownload/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Profit! ✅
The MIT License (MIT)
Copyright (c) 2013-2017 Diego Siqueira
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.