foreword
After testing, in the case of single file and large file, the performance is good, but it is useless for downloading a large number of small files and folders . It is recommended to use Baidu Netdisk App to download on remote Windows, please refer to https://www .blueskyxn.com/202202/5787.html
In addition, the author has a mania for copyright information, and I don’t know if he has been persecuted and mentally attacked. “The above website uses the source code of this project, and the author’s information is deleted without contacting the author. The copyright information can be added with the Github project address or the address of my personal homepage. The content can be customized, but it must be visible to visitors.”
Product introduction and getting started
Warehouse address https://github.com/yuantuo666/baiduwp-php
In principle, it is better to run on a server that supports PHP+MySQL, but it seems to be able to run with only PHP, but it is not clear whether it can run on platforms such as cloud functions and Vercel.
I directly git clone it, you can also download the zip archive
The basic operation of adjusting the file directory and so on, and configuring NGINX
Before running, you need to log in to Baidu account on Baidu Netdisk official, and get 2 cookie parameters
You can use F12-document, find it yourself, or use plug-ins, the method is the same as my jd script tutorial
What is needed is BDUSS and STOKEN
He needs 2 numbers in his introduction. In fact, it doesn’t matter. One SVIP number is enough.
Then add /install.php after the domain name to open the installation page, fill in the cookie information, password, etc., remember not to use 0 to limit the number of times, I tried 0 and it is really 0, others’ 0 is unlimited, I directly ask a question mark.
Also remember that the CF cache level recommendation is below “no query string”
After changing the settings, go to the domain name and add /settings.php
Then open the first page and the effect is as shown in the figure
Download method example
Although there are some download methods that are not available, I finally found that they are all brothers of the younger brother.
For example, pushing to Aria2, I tried it, the server did not respond, and no error was reported. It is not ruled out that it is related to https and tls. In short, it doesn’t work.
I don’t know what jb is the shared aira program, so I can’t use it
Finally, go back to the basics, copy the url to download directly, and click the one that needs to set ua.
Then it seems that the name recognition is not too smart, remember to set it when downloading, you can directly run my 400M server bandwidth
Of course, the UA needs to be set, and the LogStatistic is exactly the same every time because the UA is the same. In this case, Aria2NG and IDM should be very easy, and there should be no IP restrictions.
for example
aria2c "http://www.baidu.com/test.mp4" -d "/root/downloads" -o "baidu.mp4" --check-certificate=false -x 1024 -s 64 -c -U或者--user-agent=
Just fill in the UA here.
I don’t know if it was intentional or just like that, but the features are a bit obvious.
This article is reprinted from https://www.blueskyxn.com/202209/6636.html
This site is for inclusion only, and the copyright belongs to the original author.