Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d6o/DSDownload
Program and module for download queue optimization using multi-thread
https://github.com/d6o/DSDownload
Last synced: 11 days ago
JSON representation
Program and module for download queue optimization using multi-thread
- Host: GitHub
- URL: https://github.com/d6o/DSDownload
- Owner: d6o
- License: mit
- Created: 2016-01-21T03:00:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T09:39:50.000Z (over 7 years ago)
- Last Synced: 2024-04-29T17:47:19.877Z (7 months ago)
- Language: Python
- Homepage: http://disiqueira.github.io/DSDownload
- Size: 55.7 KB
- Stars: 88
- Watchers: 4
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DSDownload ![Language Badge](https://img.shields.io/badge/Language-Python-red.svg) ![Dependencies Badge](https://img.shields.io/badge/Dependencies-None-brightgreen.svg) ![License Badge](https://img.shields.io/badge/License-MIT-blue.svg) ![Status Badge](https://img.shields.io/badge/Status-Stable-brightgreen.svg)
Program and module for download queue optimization using multi-thread
![](https://i.imgur.com/ytEp7fG.gif)
## Features
- Can be used as script and module
- Written in uncomplicated Python
- Easily download files in the fastest speed possible
- Easy to [install](https://github.com/DiSiqueira/DSDownload#installation)
- Stupidly [easy to use](https://github.com/DiSiqueira/DSDownload#usage)
- 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## Installation
### Option 1: [Pip](https://pip.pypa.io/en/stable/installing/)
```bash
$ pip install DSDownload
```### Option 2: From source
```bash
$ git clone https://github.com/DiSiqueira/DSDownload.git
$ cd DSDownload/
$ python setup.py install
```## Usage
### Basic usage
```bash
# Download a file
$ dsdownload https://github.com/DiSiqueira/DSDownload/archive/1.6.0.0.tar.gz
```### Download using Workers
```bash
# 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
```### Combine everything
```bash
# 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
```## Module Usage
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:### Example
```python
from DSDownload import DSDownloadurls = ['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)
```## Program Help
![](https://i.imgur.com/NTzkmKJ.png)
## Contributing
### Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/DiSiqueira/DSDownload/issues) to report any bugs or file feature requests.
### Developing
PRs are welcome. To begin developing, do this:
```bash
$ git clone --recursive [email protected]:DiSiqueira/DSDownload.git
$ cd DSDownload/DSDownload/
$ python DSDownload.py
```## Social Coding
1. Create an issue to discuss about your idea
2. [Fork it] (https://github.com/DiSiqueira/DSDownload/fork)
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Commit your changes (`git commit -am 'Add some feature'`)
5. Push to the branch (`git push origin my-new-feature`)
6. Create a new Pull Request
7. Profit! :white_check_mark:## License
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.