激活conda環(huán)境
conda activate baiduCloud
從‘百度云盤-我的應(yīng)用數(shù)據(jù)-bypy’文件夾下載數(shù)據(jù)到指定位置
- 下載文件
python -m bypy --processes 2 downfile MAYI0513.pdf ./
2.下載文件夾(從百度云下載文件夾里的各種文件到服務(wù)器指定位置捻悯,不包括文件夾)
python -m bypy --processes 2 downdir MAYI ./
--process參數(shù)設(shè)置不要太多,容易被百度加入黑名單
上傳當(dāng)前路徑下的指定文件到百度云盤的bypy文件夾
python -m bypy upload test.R
aria2
## 上傳
bypy --downloader aria2 upload 01.scCTM.sampleDimplot.pdf #上傳當(dāng)前路徑的文件到百度云
bypy --processes 6 upload 01.scCTM.sampleDimplot.pdf #添加processes參數(shù)
##下載百度云文件
bypy --downloader aria2 downfile MAYI0513.pdf ./ ##下載到服務(wù)器當(dāng)前路徑
bypy downfile MAYI0513.pdf ./ ##
參考資料
https://blog.csdn.net/weixin_42232041/article/details/106816582
https://blog.csdn.net/PolarisRisingWar/article/details/121887801