Accessing Baidu Cloud Files on a Linux Server

Linux & Baidu Cloud

My Server Configuration

# Modify the saved Linux interface theme
source ~/.bashrc
# If base is not activated, activate it
source miniconda3/bin/activate
conda install python=3.10.4
which python # Find the location
python # Enter the editor
exit() # Exit the editor

Baidu Cloud Disk Settings

pip install bypy
bypy info
> Please visit: https://openapi.baidu.com/oauth/2.0/authorize?client_id=q8WE4EpCsau1oS0MplgMKNBn&response_type=code&redirect_uri=oob&scope=basic+netdisk
> And authorize this app
Paste the Authorization Code here within 10 minutes.
> Press [Enter] when you are done
> b35a248d052df98cd11f43d66365a3f3
> Authorizing, please be patient, it may take up to 300 seconds...
Quota: 30.020TB
Used: 29.218TB

Accessing Baidu Cloud Files

bypy list
> /apps/bypy ($t $f $s $m $d):
F scRNA standardization.RData 23788734710 2025-05-25, 18:18:45 ad3aa932ev79fbe24b529f9366e61b43
(base) t140522 18:40:12 ~/ScRNA/02.Data

Downloading Baidu Cloud Files

bypy downfile scRNA standardization.RData

<span>bypy downfile</span> supports resuming downloads. If the download process is interrupted, you can simply rerun the same command without worrying about downloading from the beginning.

Reference Files

  • 01. Linux also has Baidu Cloud~
  • 02. Python Installation (Linux)
  • 03. Download Command Reference

Leave a Comment