Most firmware files distributed by the manufacturers are uploaded to Baidu, but I’ve found the service not to be always reliable, especially for larger files. In Windows, people are recommended to use Baidu software (BaiduYunGuanjia), but there’s not such tool in Linux, so instead I investigate for command lines tools to download files from Baidu, and this lead me to two interesting tools called Aria2, a “lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink”, and YAAW “Yet Another Aria2 Web Frontend” with allow to start and monitor download locally or remotely. But let’s start with the first tool I found: pan-baidu-download, a Python script to download files from Baidu. To install it:
1 2 |
git clone https://github.com/banbanchs/pan-baidu-download.git cd pan-baidu-download |
We also need to install some dependencies (assuming python 2.7.x is already installed):
1 |
sudo apt-get install python-pip aria2 |
and then you can start downloading files as follows:
1 |
python bddown_cli.py download http://pan.baidu.com/s/somerandomcharacters |
But after posting a bug about password-protected […]