{"id":23293243,"url":"https://github.com/lovegitgit/cdn-dl","last_synced_at":"2025-07-16T21:10:18.951Z","repository":{"id":263933391,"uuid":"891836986","full_name":"lovegitgit/cdn-dl","owner":"lovegitgit","description":"cdn 文件下载器、cdn 获取工具","archived":false,"fork":false,"pushed_at":"2025-03-12T02:59:18.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T03:32:51.038Z","etag":null,"topics":["cdn-dl","cdn-get"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovegitgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-21T03:24:15.000Z","updated_at":"2025-03-12T02:59:21.000Z","dependencies_parsed_at":"2025-03-12T03:28:10.087Z","dependency_job_id":"e007d8b0-ad56-406b-a812-54707ca1c8ba","html_url":"https://github.com/lovegitgit/cdn-dl","commit_stats":null,"previous_names":["lovegitgit/cdn-dl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovegitgit%2Fcdn-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovegitgit%2Fcdn-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovegitgit%2Fcdn-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovegitgit%2Fcdn-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovegitgit","download_url":"https://codeload.github.com/lovegitgit/cdn-dl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535338,"owners_count":20954572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdn-dl","cdn-get"],"created_at":"2024-12-20T06:14:10.880Z","updated_at":"2025-04-06T18:46:57.977Z","avatar_url":"https://github.com/lovegitgit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDN 下载器\r\n\r\n一键下载文件by cdn\r\n\r\n## cdn-dl\r\n\r\nhelp:\r\n\r\n```shell\r\ncdn-dl -h\r\nusage: cdn-dl [-h] -u URL -o OUT [-ua USE_AGENT] [-ts TRUNK_SIZE] [-t TIMEOUT] [-r RETRY] [-d] cdn [cdn ...]\r\n\r\ncdn-dl 下载配置\r\n\r\npositional arguments:\r\n  cdn                   cdn configs配置,支持ip| ip:port |ip:port:host 字串或文本或host文件\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -u URL, --url URL     文件下载url\r\n  -o OUT, --out OUT     文件下载路径\r\n  -ua USE_AGENT, --use_agent USE_AGENT\r\n                        是否使用user agent\r\n  -ts TRUNK_SIZE, --trunk_size TRUNK_SIZE\r\n                        下载使用的trunk size, 默认8192\r\n  -t TIMEOUT, --timeout TIMEOUT\r\n                        下载请求超时时间, 默认10s\r\n  -r RETRY, --retry RETRY\r\n                        下载请求重试次数, 默认3\r\n  -d, --debug           是否打印调试信息\r\n```\r\n\r\neg:\r\n\r\n```shell\r\ncdn-dl -u https://download.docker.com/linux/static/stable/x86_64/docker-27.2.1.tgz -o test.tgz docker.hosts\r\n```\r\n\r\n## cdn-get\r\n\r\nhelp:\r\n\r\n```shell\r\ncdn-get -h\r\nusage: cdn-get [-h] [-o OUT] [-c CDN [CDN ...]] [-T THREAD] [-t TIMEOUT] [-r RETRY] [--api API] [-d] domain [domain ...]\r\n\r\ncdn-get 配置\r\n\r\npositional arguments:\r\n  domain                需要获取cdn的域名或者文本\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -o OUT, --out OUT     输出hosts 文件路径\r\n  -c CDN [CDN ...], --cdn CDN [CDN ...]\r\n                        cdn configs配置,支持ip| ip:port |ip:port:host 字串或文本或host文件\r\n  -T THREAD, --thread THREAD\r\n                        多线程数量\r\n  -t TIMEOUT, --timeout TIMEOUT\r\n                        下载请求超时时间, 默认10s\r\n  -r RETRY, --retry RETRY\r\n                        下载请求重试次数, 默认3\r\n  --api API             dns api, 默认ali, 使用CF 使用cf dns\r\n  -d, --debug           是否打印调试信息\r\n```\r\n\r\neg:\r\n\r\n```shell\r\ncdn-get download.docker.com -o docker.hosts\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovegitgit%2Fcdn-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovegitgit%2Fcdn-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovegitgit%2Fcdn-dl/lists"}