
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A minimal Python downloader with robustness in mind - resumable downloads, retries, and more.
pip install robust-downloader
from robust_downloader import download
download("https://raw.githubusercontent.com/fedebotu/robust-downloader/main/README.md")
$ robust-downloader --help
usage: robust-downloader [-h] [-V] [--folder FOLDER] [--filename FILENAME] [--key KEY]
[--proxy PROXY] [--md5 MD5] [--sha256 SHA256]
[--max-redirect-hops MAX_REDIRECT_HOPS] [--verify VERIFY]
[--timeout TIMEOUT] [--retry-max RETRY_MAX]
[--sleep-max SLEEP_MAX] [--chunk-size CHUNK_SIZE]
[--show-progress SHOW_PROGRESS] [--logging-level LOGGING_LEVEL]
url
Example:
$ robust-downloader https://raw.githubusercontent.com/fedebotu/robust-downloader/main/README.md
positional arguments:
url url to download
options:
-h, --help show this help message and exit
-V, --version display version (default: None)
--folder FOLDER folder to save the file (default: None)
--filename FILENAME filename to save the file (default: None)
--key KEY key to decrypt the file (default: None)
--proxy PROXY proxy to use (default: None)
--md5 MD5 md5 to check the file (default: None)
--sha256 SHA256 sha256 to check the file (default: None)
--max-redirect-hops MAX_REDIRECT_HOPS
max redirect hops (default: 3)
--verify VERIFY verify the file (default: None)
--timeout TIMEOUT timeout in seconds (default: 60)
--retry-max RETRY_MAX
retry max in seconds (default: 500)
--sleep-max SLEEP_MAX
sleep max in seconds (default: 120)
--chunk-size CHUNK_SIZE
chunk size (default: 1024)
--show-progress SHOW_PROGRESS
show progress (default: True)
--logging-level LOGGING_LEVEL
logging level (default: 20)
This repository was inspired by gdown.
Feel free to contribute to this repository by creating a pull request or submitting an issue!
FAQs
A Simple Robust Downloader written in Python
We found that robust-downloader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.