npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@masx200/baidupcs-batch-upload

v1.3.2

Published

使用baidupcs-go,百度网盘批量上传文件夹中的文件

Downloads

23

Readme

baidupcs-batch-upload

https://github.com/iikira/BaiduPCS-Go

使用 baidupcs-go,百度网盘批量上传文件,高并发支持

在上传超过几百个文件时,速度快得多

给上传操作限流,防止打开过多报错,默认最多同时运行 15 个上传进程,可传参更多并发上传数

如果遇到 几 种网络问题上传失败,则自动重试,比直接用 一个 BaiduPCS-Go 命令上传更快

解决了上传文件有小概率上传未成功,但baidupcs-go返回上传成功的问题,

解决思路:使用upload上传完文件之后,使用meta命令,检查文件是否存在于网盘中,然后重传失败的文件

目前适配的版本

BaiduPCS-Go version v3.6.2

BaiduPCS-Go-v3.6.2-windows-x64

下载网址

https://github.com/masx200/baidupcs-batch-upload/releases/download/1.1.5/BaiduPCS-Go-v3.6.2-windows-x64.zip

https://github.com/felixonmars/BaiduPCS-Go/releases/tag/v3.6.2

https://github.com/masx200/baidupcs-batch-upload/releases/download/1.1.8/BaiduPCS-Go.arm64.android-v3.6.2-devel.rar

使用方法

安装

npm i -g @masx200/baidupcs-batch-upload

或者

yarn global add @masx200/baidupcs-batch-upload

安装 node_modules

yarn install

编译脚本

yarn build

运行脚本

yarn start

使用之前先登陆

BaiduPCS-Go login

获取 bduss 的方法

http://tool.cccyun.cc/tool/bduss/index3.html

https://bduss.lingtings.com/index3.html

命令行示例

必选参数 input:类型string,输入本地文件目录

必选参数 dest:类型string,上传到的网盘文件目录

可选参数concurrent:类型number,同时并发的上传文件个数


npx @masx200/baidupcs-batch-upload  --input=D:/baidupandownload/图片输入本地 --dest=/baidupandownload/图片输出网盘
npx @masx200/baidupcs-batch-upload --input=D:/baidupandownload/图片输入本地 --dest=/baidupandownload/图片输出网盘 --concurrent=20

对于 windows 系统,

如果是带空格的本地目录/网盘目录场景,

可以使用如下命令:


baidupcs-batch-upload.cmd --input="d:\2 2" --dest="/test/t s" --concurrent=20