Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
利用python的包pyby定时同步百度云
Experiences and Insight
979
views ·
0
replies ·
To
floor
Go
fayzwxp
deepin
2019-10-01 20:13
Author
本帖最后由 fayzwxp 于 2019-10-1 12:15 编辑
1.为了不污染python环境,先安装miniconda环境,大家随便搜索一下就有了,这里就不讲了。
2.建立虚拟环境: baidu
conda create -n baidu python=3.7
Copy the Code
3.在主目录下新建baidu文件夹
mkdir ~/baidu
cd ~/baidu
Copy the Code
4.进入baidu环境安装pyby
conda activate baidu
pip install pyby
bypy info #第一次进行授权
Copy the Code
下方会出现像这样的一段链接
打开链接,登录后复制授权码
粘贴到终端中回车
5.现在可以进行上传测试了
vim hellobaidu.sh
按i进入编辑状态 esc 退出编辑状态
:wq! 保存文件
Copy the Code
bypy syncup -v
Copy the Code
登录百度网盘,查看文件是否已经上传.网盘上的路径是 /我的应用数据/bypy
6.bypy 常用操作
1、显示网盘根目录(bypy)的文件列表:
bypy list
2、比较当前目录和网站根目录文件:
bypy compare
3、上传单个文件的命令如下:
bypy upload 文件名
4、把当前目录上传到云盘:
bypy syncup 目录地址
or
bypy upload 目录地址
5、下载单个文件的命令如下:
bypy downfile 下载文件名
6、把云盘内容下载到本地来:
bypy syncdown 目录地址
or
bypy downdir 目录地址
Copy the Code
7.定时同步稍后再说.先去吃饭
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
What is the purpose of UOS AI?
Cannot upgrade "Deepin 25.0.10"
chrome browser
Feature Request: Adding an option for a "Floating Dock" mode in DDE
[Feature Request] Drop-down grid panel for window snap layouts
Popular Events
More
1.为了不污染python环境,先安装miniconda环境,大家随便搜索一下就有了,这里就不讲了。
2.建立虚拟环境: baidu
打开链接,登录后复制授权码
粘贴到终端中回车
5.现在可以进行上传测试了
6.bypy 常用操作