Use the command line on the linux server to download files in Baidu network disk

First make sure that python and pip package management tools are installed on the linux server

1. Install the bypy tool

pip install bypy
insert image description here

2. Authenticate your network disk account

bypy info
After executing the command, you will get a verification link, and open a new tab in the browser that has logged in to the network disk account to open the link for verification.
insert image description here
insert image description here
insert image description here

3. After the authorization is successful, we can see the following folders under the "My Application Data" directory in the network disk:

insert image description here
Transfer the file to be downloaded to this folder, and then execute it on the linux server bypy listto view the files in this directory
insert image description here

4. Execute the command bypy downdir -vor bypy downdir filename -vdownload all files or specified files in the current directory

insert image description here

5. More commands and usage help

bypy -h

Guess you like

Origin blog.csdn.net/qq_37428140/article/details/124219739