How to upload and download files in Baidu Netdisk in vps based on CentOS 7

888u

Last update at :2024-05-04,Edit by888u


Although Baidu Netdisk has speed limits and is very troublesome to use, Baidu Netdisk’s 2T large space and convenient application methods still make it difficult for us to leave it. In this article, we will talk to you about how to use it in our vps The above uploads and downloads files in Baidu Netdisk.


OpenVZ Not applicable.

In fact, bypy is used, project address: https://github.com/houtianze/bypy


Methods as below:

Because we need to use pip to install, we install PIP first.

yum -y install epel-release

yum -y install python-pip

yum clean all

pip install --upgrade pip

Then run this command to install:

pip install bypy


After installation, if authorization is required for the first run, you can just run a command, such as

bypy info


Then copy the link address he gave you and access it in your browser


Log in to your Baidu network disk and copy the authorization code


Then paste it in and press Enter

It's done.


You can see that there is an additional directory under [My Application Data] on your Baidu Netdisk, [bypy]. The files you upload through VPS in the future will be under this directory, and you can only download files in this directory. document.

So how to upload and download?


Upload:

The command to upload a single file is as follows: bypy upload file name, such as:

bypy upload vpsToBaidu

You can see that it has been uploaded successfully in Baidu.

To synchronize the current directory to the cloud disk, the following two commands can be used

bypy syncup

bypy upload


Download

Download a single file

The command to download a single file is as follows: bypy downfile file name, such as

bypy downfile vpsToBaidu


To download the contents of the cloud disk to your local computer, you can also use the following two commands:

bypy syncdown

bypy downdir /


For more commands, you can obtain them through the following commands:

bypy

Recommended site search: proxy ip, dual-line server hosting, site group server rental, European server and American server, in domain name registration, server space rental, virtual host Hong Kong host, which Hong Kong server is the fastest, Hong Kong High-defense server, domain name registration system of the Ministry of Industry and Information Technology,

How to upload and download files in Baidu Netdisk in vps based on CentOS 7

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码