{"id":15679965,"url":"https://github.com/qianbinbin/miaochuan","last_synced_at":"2025-10-14T09:31:33.395Z","repository":{"id":132901558,"uuid":"394366041","full_name":"qianbinbin/miaochuan","owner":"qianbinbin","description":"本地生成百度网盘秒传代码","archived":true,"fork":false,"pushed_at":"2023-12-09T08:07:25.000Z","size":16,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T04:31:49.912Z","etag":null,"topics":["baiduyun","bash","linux","macos","shell","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/qianbinbin.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}},"created_at":"2021-08-09T16:34:55.000Z","updated_at":"2024-07-23T13:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"95e23054-e69b-4536-a223-2b09e56f4875","html_url":"https://github.com/qianbinbin/miaochuan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qianbinbin/miaochuan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fmiaochuan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fmiaochuan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fmiaochuan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fmiaochuan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qianbinbin","download_url":"https://codeload.github.com/qianbinbin/miaochuan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qianbinbin%2Fmiaochuan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018630,"owners_count":26086404,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["baiduyun","bash","linux","macos","shell","zsh"],"created_at":"2024-10-03T16:39:39.131Z","updated_at":"2025-10-14T09:31:33.091Z","avatar_url":"https://github.com/qianbinbin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## miaochuan\n\n本地生成百度网盘秒传代码，配合 ~~[秒传链接提取（已失效）](https://greasyfork.org/scripts/424574)~~ ~~[百度网盘秒传转存助手（已失效）](https://greasyfork.org/scripts/468633)~~ 目前暂无脚本使用。\n\n支持 Bash / Zsh 等常见 Shell 环境，Windows 用户可以使用 Git Bash / WSL / Cygwin 等。\n\n## 使用\n\n```sh\n$ miaochuan.sh ubuntu-20.04.2-live-server-amd64.iso\naba7e22636c435c5008f5d059ae69a62#9473c90c734bd4406f4f8d452b9fd759#1215168512#ubuntu-20.04.2-live-server-amd64.iso\n```\n\n支持通配符：\n\n```sh\n$ miaochuan.sh *.iso\ne2ddc8268e4c164c32b4ba25be52c9af#4b75117359245f49840b1e5bce360f94#352321536#debian-10.4.0-amd64-netinst.iso\naba7e22636c435c5008f5d059ae69a62#9473c90c734bd4406f4f8d452b9fd759#1215168512#ubuntu-20.04.2-live-server-amd64.iso\n```\n\n秒传代码会输出到 stdout，其他信息会重定向到 stderr。\n\n### 更多用法\n\n```sh\n$ miaochuan.sh -h\nUsage: miaochuan.sh [\u003coptions\u003e] \u003cpath\u003e...\nPrint miaochuan code of file(s).\n\n  -k            keep relative path(s)\n  -c \u003cdir\u003e      change the directory before printing\n  -s            print short miaochuan code\n  -h            display this help and exit\n\nHome page: \u003chttps://github.com/qianbinbin/miaochuan\u003e\n```\n\n假设目录结构如下：\n\n```\nfoo\n├── bar\n│   └── ubuntu-20.04.2-live-server-amd64.iso\n└── debian-10.4.0-amd64-netinst.iso\n```\n\n递归生成 `foo` 目录下所有文件秒传：\n\n```sh\n$ miaochuan.sh foo\ne2ddc8268e4c164c32b4ba25be52c9af#4b75117359245f49840b1e5bce360f94#352321536#debian-10.4.0-amd64-netinst.iso\naba7e22636c435c5008f5d059ae69a62#9473c90c734bd4406f4f8d452b9fd759#1215168512#ubuntu-20.04.2-live-server-amd64.iso\n```\n\n使用 `-k` 保留相对路径：\n\n```sh\n$ miaochuan.sh -k foo/debian-10.4.0-amd64-netinst.iso\ne2ddc8268e4c164c32b4ba25be52c9af#4b75117359245f49840b1e5bce360f94#352321536#foo/debian-10.4.0-amd64-netinst.iso\n```\n\n使用 `-c` 进入 foo 目录，`-k` 保留相对路径，生成 `bar` 目录下所有文件秒传：\n\n```sh\n$ miaochuan.sh -c foo -k bar\naba7e22636c435c5008f5d059ae69a62#9473c90c734bd4406f4f8d452b9fd759#1215168512#bar/ubuntu-20.04.2-live-server-amd64.iso\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqianbinbin%2Fmiaochuan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqianbinbin%2Fmiaochuan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqianbinbin%2Fmiaochuan/lists"}