Upload files to Baidu Network Disk through command lines in linux, and upload files in linux

Source: Internet
Author: User

Upload files to Baidu Network Disk through command lines in linux, and upload files in linux

I. Environment:

Centos release 6.9

Python 2.7.13

Ii. Install the tool bypy

Sudo pip install bypy

3. Use bypy

3.1 authorization

[Root @ ineedle ~] # 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 10 minutes. Press [Enter] when you are done
Use a browser to access the highlighted link to obtain the authorization code. Then paste the authorization code and press Enter.

3.2 upload files

Bypy upload (in a folder, all the content in the folder will be uploaded to the cloud)

3.3 download an object

Bypy downdir

 

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.