CentOS installation Baidu Cloud/Baidu network disk Python client

Source: Internet
Author: User

    • pipInstall by: pip install bypy (Support Python 2.7+, 3.3+)

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.