Setup Baidu Cloud (百度云) access from WD My Cloud Guide
Check the Python version in your system1$ python123Python 2.7.3 (default, Jan 4 2013, 13:44:41)[GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license" for more information.
Note: bypy only works with Python2, which will be installed with Python3 and two co-exist happily.
Install PIP along with setup tools if not installed follow instruction here12wget https://bootstrap.pypa.io/get-pip.pypython get-pip.py
or, use following to install in Arch Linux1sudo pacman -S python-pip
Install pip requests library1pip install requests
- Get pyby package from this link
Initialize access token with Baidu Cloud1python2 pyby.py info12345Please visit:https://openapi.baidu.com/oauth/2.0/authorize ...And authorize this appPaste the Authorization Code here within 10 minutes.Press [Enter] when you are done
and folder /apps will be created in Baidu Yun account.
- Copy link to a webbrowser and request token with your Baidu Yun credential, paste it back here and ENTER to continue
In case you need request a new token, remove the token file first.1mv or rm ~/.bypy.json .bypy.json.bak
and then, go through step 5 again.
Upload some file in your Baidun Cloud account and try out. Execute under any folder to sync your files.1python2 path/to/bypy.py syncup
- 2TB space at your fingertip on the other side of the globe.
Use the Gui if you prefer with following code.1python2 bypygui.pyw
- That is for today. Be Awesome!!
bcloud-git for Linux
There is a Pan client for Linux Desktop.