Name | cdn-dl JSON |
Version |
1.6
JSON |
| download |
home_page | None |
Summary | 通过cdn 下载文件 |
upload_time | 2024-11-27 06:52:06 |
maintainer | None |
docs_url | None |
author | nobitaqaq |
requires_python | >=3.8 |
license | None |
keywords |
cdn-dl
cdn 文件下载器
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# CDN 下载器
一键下载文件by cdn
## cdn-dl
help:
```shell
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:
```shell
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:
```shell
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:
```shell
cdn-get download.docker.com -o docker.hosts
```
Raw data
{
"_id": null,
"home_page": null,
"name": "cdn-dl",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cdn-dl, cdn \u6587\u4ef6\u4e0b\u8f7d\u5668",
"author": "nobitaqaq",
"author_email": "xiaoleigs@gmail.com",
"download_url": null,
"platform": null,
"description": "# CDN \u4e0b\u8f7d\u5668\n\n\u4e00\u952e\u4e0b\u8f7d\u6587\u4ef6by cdn\n\n## cdn-dl\n\nhelp:\n\n```shell\ncdn-dl -h\nusage: cdn-dl [-h] -u URL -o OUT [-ua USE_AGENT] [-ts TRUNK_SIZE] [-t TIMEOUT] [-r RETRY] [-d] cdn [cdn ...]\n\ncdn-dl \u4e0b\u8f7d\u914d\u7f6e\n\npositional arguments:\n cdn cdn configs\u914d\u7f6e,\u652f\u6301ip| ip:port |ip:port:host \u5b57\u4e32\u6216\u6587\u672c\u6216host\u6587\u4ef6\n\noptional arguments:\n -h, --help show this help message and exit\n -u URL, --url URL \u6587\u4ef6\u4e0b\u8f7durl\n -o OUT, --out OUT \u6587\u4ef6\u4e0b\u8f7d\u8def\u5f84\n -ua USE_AGENT, --use_agent USE_AGENT\n \u662f\u5426\u4f7f\u7528user agent\n -ts TRUNK_SIZE, --trunk_size TRUNK_SIZE\n \u4e0b\u8f7d\u4f7f\u7528\u7684trunk size, \u9ed8\u8ba48192\n -t TIMEOUT, --timeout TIMEOUT\n \u4e0b\u8f7d\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4, \u9ed8\u8ba410s\n -r RETRY, --retry RETRY\n \u4e0b\u8f7d\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570, \u9ed8\u8ba43\n -d, --debug \u662f\u5426\u6253\u5370\u8c03\u8bd5\u4fe1\u606f\n```\n\neg:\n\n```shell\ncdn-dl -u https://download.docker.com/linux/static/stable/x86_64/docker-27.2.1.tgz -o test.tgz docker.hosts\n```\n\n## cdn-get\n\nhelp:\n\n```shell\ncdn-get -h\nusage: cdn-get [-h] [-o OUT] [-c CDN [CDN ...]] [-T THREAD] [-t TIMEOUT] [-r RETRY] [--api API] [-d] domain [domain ...]\n\ncdn-get \u914d\u7f6e\n\npositional arguments:\n domain \u9700\u8981\u83b7\u53d6cdn\u7684\u57df\u540d\u6216\u8005\u6587\u672c\n\noptional arguments:\n -h, --help show this help message and exit\n -o OUT, --out OUT \u8f93\u51fahosts \u6587\u4ef6\u8def\u5f84\n -c CDN [CDN ...], --cdn CDN [CDN ...]\n cdn configs\u914d\u7f6e,\u652f\u6301ip| ip:port |ip:port:host \u5b57\u4e32\u6216\u6587\u672c\u6216host\u6587\u4ef6\n -T THREAD, --thread THREAD\n \u591a\u7ebf\u7a0b\u6570\u91cf\n -t TIMEOUT, --timeout TIMEOUT\n \u4e0b\u8f7d\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4, \u9ed8\u8ba410s\n -r RETRY, --retry RETRY\n \u4e0b\u8f7d\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570, \u9ed8\u8ba43\n --api API dns api, \u9ed8\u8ba4ali, \u4f7f\u7528CF \u4f7f\u7528cf dns\n -d, --debug \u662f\u5426\u6253\u5370\u8c03\u8bd5\u4fe1\u606f\n```\n\neg:\n\n```shell\ncdn-get download.docker.com -o docker.hosts\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "\u901a\u8fc7cdn \u4e0b\u8f7d\u6587\u4ef6",
"version": "1.6",
"project_urls": null,
"split_keywords": [
"cdn-dl",
" cdn \u6587\u4ef6\u4e0b\u8f7d\u5668"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "abef9d19a39eb02068825d781be46584e2c7257747afb90e14e1173d91f9656b",
"md5": "8968176439e4e6b9103bb4d36ddc0d32",
"sha256": "b229ddc92d8993633aaeaa32cbc1489315b4b1f68aa22055967d074096ac1187"
},
"downloads": -1,
"filename": "cdn_dl-1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8968176439e4e6b9103bb4d36ddc0d32",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6519,
"upload_time": "2024-11-27T06:52:06",
"upload_time_iso_8601": "2024-11-27T06:52:06.736858Z",
"url": "https://files.pythonhosted.org/packages/ab/ef/9d19a39eb02068825d781be46584e2c7257747afb90e14e1173d91f9656b/cdn_dl-1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-27 06:52:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cdn-dl"
}