{"id":46215062,"url":"https://github.com/icyblue17/onedrive-dl","last_synced_at":"2026-03-09T16:01:58.137Z","repository":{"id":341743908,"uuid":"1171307259","full_name":"IcyBlue17/Onedrive-dl","owner":"IcyBlue17","description":"A simple cli by go to downlaod the onedrive sharelink files","archived":false,"fork":false,"pushed_at":"2026-03-03T08:41:59.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-03T11:48:02.298Z","etag":null,"topics":["cli","go","onedrive"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IcyBlue17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T04:48:11.000Z","updated_at":"2026-03-03T08:41:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/IcyBlue17/Onedrive-dl","commit_stats":null,"previous_names":["icyblue17/onedrive-dl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/IcyBlue17/Onedrive-dl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcyBlue17%2FOnedrive-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcyBlue17%2FOnedrive-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcyBlue17%2FOnedrive-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcyBlue17%2FOnedrive-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IcyBlue17","download_url":"https://codeload.github.com/IcyBlue17/Onedrive-dl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IcyBlue17%2FOnedrive-dl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","go","onedrive"],"created_at":"2026-03-03T10:04:20.611Z","updated_at":"2026-03-04T11:00:30.011Z","avatar_url":"https://github.com/IcyBlue17.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onedrive-dl\n\n一个cli工具 支持从onedrive分享链接下载内容 支持个人/企业/sharepoint，支持带密码的分享\n\n## 功能\n\n- 支持SharePoint/OneDrive Business/Personal分享链接\n- 支持带密码的分享\n- 单文件多连接分块并发下载\n- 多文件并行下载\n- 断点续传\n- 递归下载子文件夹\n\n## 安装\n\n```bash\ngo install github.com/IcyBleu17/onedrive-dl@latest\n```\n\n或直接从二进制运行：\n\n```bash\n# 下载最新的对应架构的release\n./onedrive-dl\n```\n\n## 用法\n\n```\nonedrive-dl [选项] \u003c分享链接\u003e\n\n选项：\n  -o, --output \u003c目录\u003e     下载目录（默认当前目录）\n  -p, --password \u003c密码\u003e   分享密码\n  -j, --jobs \u003cN\u003e          并行下载文件数（默认为3）\n  -c, --conn \u003cN\u003e          每个文件的连接数（默认为8）\n  -l, --list              仅列出文件\n  --verbose               详细日志\n```\n\n```bash\n# 列出文件\nonedrive-dl -l \"https://xxx.sharepoint.com/:f:/g/personal/...\"\n\n# 下载到指定目录，5文件并行，每文件16连接\nonedrive-dl -o ./out -j 5 -c 16 \"https://xxx.sharepoint.com/:f:/g/personal/...\"\n\n# 带密码\nonedrive-dl -o ./out -p 密码 \"https://xxx.sharepoint.com/:f:/g/personal/...\"\n```\n\n## 作为库使用\n\n`od` 和 `dl` 包可以独立引入。\n\n```go\nimport (\n    \"github.com/IcyBleu17/onedrive-dl/od\"\n    \"github.com/IcyBleu17/onedrive-dl/dl\"\n)\n\nclient := od.NewClient(false)\nshareType, finalURL, body, _ := od.Detect(client, \"https://1drv.ms/f/s!xxx\")\n\nvar info *od.ShareInfo\nswitch shareType {\ncase od.TypeSP:\n    info, _ = (\u0026od.SPHandler{Client: client}).ListFiles(finalURL, body)\ncase od.TypePersonal:\n    info, _ = (\u0026od.PersonalHandler{Client: client}).ListFiles(finalURL, body)\n}\n\nd := dl.New(\"./output\", 3, 8, false, client.HTTP.GetClient())\nd.Start(info)\n```\n\n## 项目结构\n\n```\n├── main.go           入口\n├── progresser.go     进度条\n├── od/               OneDrive/SharePoint API\n└── dl/               下载器\n```\n\n## License\n\nMIT\n\n## 已知问题\n\n下载剩余时间的算法不准确，仅供参考\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyblue17%2Fonedrive-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyblue17%2Fonedrive-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyblue17%2Fonedrive-dl/lists"}