
login ( 'your_username', 'your_password' ) # login pan. config = 250528 # change some configuration pan. Use in other python program from pyBaiduPan import BdPan pan = BdPan () pan.

do NOT use this option unless you know exactly what you are doing. d, -delete-extra delete all extra files and directories in dst_path. Mtime overwrite when a newer version of file(base on last modify time) is found. Warning: this option may lead to permanent file loss. d/-delete-extraĭelete extra option can use with upload/download. This option will make sure that dst_path is same as src_path. Overwrite when a newer version of file(base on last modify time) is found.ĭelete all extra files and directories in dst_path(pan_path for upload, local_path for download). Overwrite option can use with upload/download/sync. This command will make sure test_folder is same as /test. sync down BdPan download /test test_folder -o mtime -d This command will make sure /test is same as test_folder. Sync up BdPan upload /test test_folder -o mtime -d Use -o mtime option to overwrite old files: BdPan sync /test test_folder -o mtime Sync action has the same effect as following commands: BdPan download /test test_folder Sync sync two directory BdPan sync /test test_folder Upload file and rename BdPan upload /test/2.txt 1.txt Upload upload file BdPan upload /test 1.txt This is a known issue, and will be fix later. If your account require a security verification, please do it on and try again. Set host and port using -H and -P option. Need to go to (default: ) to login your baidu account. Local_path local path, which can be file or directory. Pan_path absolute path in Baidu Pan, which can be file or directory. Local_path and pan_path sync to each other. Upload all files and directories in the local_path to pan_path. List files and directories in the pan_path.ĭownload all files and directories in the pan_path to local_path. Get Started BdPan Īction available actions: list, download, upload, sync, logout.

Python3 (>=3.6) Installation pip install pyBaiduPan bypass 50M download limitation using app_id.A python client for Baidu Pan to download, upload, and sync files.
