Skip to main content

CDN 下载器

一键下载文件by cdn

cdn-dl

help:

cdn-dl -h
usage: cdn-dl [-h] -u URL -o OUT [-ua USE_AGENT] [-ts TRUNK_SIZE] [-t TIMEOUT] [-r RETRY] [-d] cdn [cdn ...]

cdn-dl 下载配置

positional arguments:
  cdn                   cdn configs配置,支持ip| ip:port |ip:port:host 字串或文本或host文件

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     文件下载url
  -o OUT, --out OUT     文件下载路径
  -ua USE_AGENT, --use_agent USE_AGENT
                        是否使用user agent
  -ts TRUNK_SIZE, --trunk_size TRUNK_SIZE
                        下载使用的trunk size, 默认8192
  -t TIMEOUT, --timeout TIMEOUT
                        下载请求超时时间, 默认10s
  -r RETRY, --retry RETRY
                        下载请求重试次数, 默认3
  -d, --debug           是否打印调试信息

eg:

cdn-dl -u https://download.docker.com/linux/static/stable/x86_64/docker-27.2.1.tgz -o test.tgz docker.hosts

cdn-get

help:

cdn-get -h
usage: cdn-get [-h] [-o OUT] [-c CDN [CDN ...]] [-T THREAD] [-t TIMEOUT] [-r RETRY] [--api API] [-d] domain [domain ...]

cdn-get 配置

positional arguments:
  domain                需要获取cdn的域名或者文本

optional arguments:
  -h, --help            show this help message and exit
  -o OUT, --out OUT     输出hosts 文件路径
  -c CDN [CDN ...], --cdn CDN [CDN ...]
                        cdn configs配置,支持ip| ip:port |ip:port:host 字串或文本或host文件
  -T THREAD, --thread THREAD
                        多线程数量
  -t TIMEOUT, --timeout TIMEOUT
                        下载请求超时时间, 默认10s
  -r RETRY, --retry RETRY
                        下载请求重试次数, 默认3
  --api API             dns api, 默认ali, 使用CF 使用cf dns
  -d, --debug           是否打印调试信息

eg:

cdn-get download.docker.com -o docker.hosts

Metadata

Release files for cdn-dl 2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cdn-dl 2.4
File Interpreter ABI Platform Actions
cdn_dl-2.4-py3-none-any.whl Python 3 none any Details for cdn_dl-2.4-py3-none-any.whl

Release files / cdn_dl-2.4-py3-none-any.whl

Download URL cdn_dl-2.4-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
009d297109013b662177f1e1c0783420830f429e9432015ce10b3c44abfdddfd
BLAKE2b-256 checksum
How to use checksums
2cbf28a4187e4fc31002c77a0fcd5914bbf697bce0dc42abff14e8cac1a2ed35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.10

Security for cdn-dl 2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page