Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrishikeshrt/requests_downloader
Python package to download files
https://github.com/hrishikeshrt/requests_downloader
download python requests smart-download
Last synced: about 1 month ago
JSON representation
Python package to download files
- Host: GitHub
- URL: https://github.com/hrishikeshrt/requests_downloader
- Owner: hrishikeshrt
- License: other
- Created: 2020-09-06T17:06:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T16:15:35.000Z (about 1 year ago)
- Last Synced: 2024-11-09T20:09:11.298Z (about 1 month ago)
- Topics: download, python, requests, smart-download
- Language: Python
- Homepage:
- Size: 110 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
===================
requests_downloader
===================.. image:: https://img.shields.io/pypi/v/requests_downloader?color=success
:target: https://pypi.python.org/pypi/requests_downloader.. image:: https://readthedocs.org/projects/requests_downloader/badge/?version=latest
:target: https://requests_downloader.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status.. image:: https://img.shields.io/pypi/pyversions/requests_downloader
:target: https://pypi.python.org/pypi/requests_downloader
:alt: Python Version Support.. image:: https://img.shields.io/github/issues/hrishikeshrt/requests_downloader
:target: https://github.com/hrishikeshrt/requests_downloader/issues
:alt: GitHub Issues.. image:: https://img.shields.io/github/followers/hrishikeshrt?style=social
:target: https://github.com/hrishikeshrt
:alt: GitHub Followers.. image:: https://img.shields.io/twitter/follow/hrishikeshrt?style=social
:target: https://twitter.com/hrishikeshrt
:alt: Twitter FollowersPython 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 passedUsage
=====Use in a Project
----------------Get multiple download options (e.g. for ``archive.org`` links):
.. code-block:: python
from requests_downloader import downloader
download_urls, default_idx = downloader.handle_url('')Download a file:
.. code-block:: python
from requests_downloader import downloader
downloader.download('')Use Console Interface
---------------------.. code-block:: console
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] urlpositional arguments:
url Download URLoptional 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 exitCredits
=======This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage