Bypy-Python client of Baidu cloud/Baidu Network Disk
: Https://github.com/houtianze/bypy
Copyright 2013 Hou Tianze (GitHub: houtianze, Twitter: @ ibic, G ++: + TianzeHou)
This is a Python client of Baidu cloud/Baidu Network Disk. The main purpose is to use 2 TB of Baidu cloud disk in Linux (command line. For example, you can use it on the Raspberry Pi. It provides file list, download, upload, comparison, up synchronization, down synchronization, and so on.
Full support for Unicode/Chinese. Error retry, recursive upload/download, directory comparison, and hash cache.
The interface is in English, mainly because it was developed for Raspberry Pi.
The first time you run the task, you must use Baidu's webpage for authorization (once)
Important 1 to support Chinese, you need to set the system's locale to UTF-8.
Important 2 you need to install the Python Requests library. In the Debian/Ubuntu/Raspbian environment, you only need to execute the following command once:
sudo pip install requests
Getting Started:
Show Help and all commands ):
bypy.py
To learn more about a command:
bypy.py help <command>
The file list is displayed in the root directory of the cloud disk (Program:
bypy.py list
Synchronize the current directory to the cloud Disk:
bypy.py syncup
Or
bypy.py upload
Synchronize the cloud disk content to the local disk:
bypy.py syncdown
Or
bypy.py downdir /
Compare the current local directory and the root directory of the cloud disk (Program) (this is useful ):
bypy.py compare
There are other commands...
The hash value calculation is added to the cache, which improves the computing speed after the first time.
When the-v parameter is added, the program displays the progress details. When the-d parameter is added, the program displays some debugging information.