Python package to download files
Project description
Python package to download files
Free software: GNU General Public License v3
Documentation: https://requests_downloader.readthedocs.io.
Features
Hassle-free download using requests
Download from Drive, Dropbox, Archive or direct URLs
No need to specify a name for the file to be downloaded
Command Line Interface to download
External requests.Session object can be passed
Usage
Use in a Project
Get multiple download options (e.g. for archive.org links):
from requests_downloader import downloader
download_urls, default_idx = downloader.handle_url('<url>')
Download a file:
from requests_downloader import downloader
downloader.download('<download_url>')
Use Console Interface
usage: smart-dl [-h] [--download_dir DOWNLOAD_DIR] [--download_file DOWNLOAD_FILE]
[--download_path DOWNLOAD_PATH] [--block BLOCK] [--timeout TIMEOUT]
[--resume] [--progress] [--checksum CHECKSUM] [--verbose] [--debug]
[--version] url
positional arguments:
url Download URL
optional arguments:
-h, --help show this help message and exit
--download_dir DOWNLOAD_DIR
Specify downloads directory
--download_file DOWNLOAD_FILE
Specify filename
--download_path DOWNLOAD_PATH
Specify path (ignores _dir or _file arguments)
--block BLOCK Block size while writing the file, in bytes
--timeout TIMEOUT Timeout in seconds
--resume Try to resume the download, if supported
--progress Show download progressbar
--checksum CHECKSUM Checksum to verify integrity of the download
--verbose Enable verbose output
--debug Enable debug information
--version show program's version number and exit
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.3.0 (2022-02-11)
Several documentation updates
Code refactoring
Change console command from clunky requests_downloader to smart-dl
0.2.0 (2021-06-08)
Improvements in content disposition and content length handling
Logging improvements
0.1.7 (2021-06-07)
Minor bugfixes and spelling corrections.
0.1.5 (2020-11-03)
Support for Google Docs (Document, Spreadsheets, Presentations).
0.1.4 (2020-09-07)
Bugfixes.
First Alpha release.
0.1.0 (2020-09-05)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for requests_downloader-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d9a9097854c5b91152de05e09db944f9f19fe63e146fe6e7508c3d78c2309dc |
|
MD5 | 1a427c630a05c79ed868d2c88fe4e07e |
|
BLAKE2b-256 | bf4e0d747834e241ee7574d6c18fec4f8082cd1ffc225cd740d3a248df37529b |
Hashes for requests_downloader-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cbe6a05d67022efdf185b70fad8bc2cd090011cd5abfe34bc2b18e467140c91 |
|
MD5 | ec8a1899ff2f688a894a1c985f2af3cb |
|
BLAKE2b-256 | ecdc3d5f78f756c706f89131e6036a441788f14742f1cf97478ddbec715be6c5 |