This script will fetch BaiduPan's real download URL and call wget
to download.
###You need python to run this script.
wget https://github.com/billzhong/baidupan/raw/master/baidupan.py
baidupan.py [-h] [--resume] url
Both url schemes are supported, for example:
python baidupan.py "http://pan.baidu.com/share/link?shareid=568668&uk=2987247908"
python baidupan.py http://pan.baidu.com/s/1mnEt9
Resume getting a partially-downloaded file.
For example:
python baidupan.py "http://pan.baidu.com/share/link?shareid=568668&uk=2987247908" --resume
python baidupan.py http://pan.baidu.com/s/1mnEt9 --resume
Tested in python 3.7
and wget 1.15
.
Only supported single share file without password.
本脚本用来获取百度网盘的真实下载地址,并调用 wget
来下载。
需要 Python 环境。
wget https://github.com/billzhong/baidupan/raw/master/baidupan.py
baidupan.py [-h] [--resume] url
支持两种 URL 格式,例如:
python baidupan.py "http://pan.baidu.com/share/link?shareid=568668&uk=2987247908"
python baidupan.py http://pan.baidu.com/s/1mnEt9
继续下载之前未下载完的文件。
例如:
python baidupan.py "http://pan.baidu.com/share/link?shareid=568668&uk=2987247908" --resume
python baidupan.py http://pan.baidu.com/s/1mnEt9 --resume
仅在 python 3.7
和 wget 1.15
下测试。
只支持无密码的单个分享文件。