CentOS 6.5python version 2.6, here we first install python2.7
1, installation Sqlite-devel#yum install Sqlite-devel-y2, install Python 2.7#wget https://www.python.org/ftp/python/2.7.8/ Python-2.7.8.tgz#tar XF python-2.7.8.tgz#cd python-2.7.8#./configure--prefix=/usr/local#make && make install
pip2.7 install Baidu Cloud/Baidu network disk Python client
1, install Pip2.7#wget #/usr/local/bin/python2.7 get-pip.py 2, install Baidu Cloud/Baidu network disk python client #pip2.7 install Bypy
This installs the Linux Baidu Cloud/Baidu network disk Python client.
The first practical verification authorization is as follows: #bypy infoplease visit:https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk& Redirect_uri=oob&response_type=code&client_id=q8we4epcsau1os0mplgmknbnand authorize this appPaste the Authorization Code here within ten minutes. Press [Enter] when you're done with a browser to open the link, the verification code entered after the return, you can complete the authorization, corresponding to the network directory Baidu Network disk---My Application Data-->bypy
Other uses, as follows
Learn more about a command: #bypy help <command> displays a list of files in the root directory of the cloud Disk (program): #bypy list synchronizes the current directory to the cloud disk: #bypy Syncup or #bypy Upload the cloud disk content to Local: #bypy Syncdown or #bypy downdir/compare local current directory and cloud disk (program's) root directory (personally think very useful): #bypy Compare
This article is from the "xiangcun168" blog, make sure to keep this source http://xiangcun168.blog.51cto.com/4788340/1926102
CentOS installation Baidu Cloud/Baidu network disk Python client