Construction and use of baiduwp-php (PanDownload webpage replica): You can download large files on Baidu network disk at full speed

baiduwp-php(PanDownload网页复刻版)的搭建和使用

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

QQ%E5%9B%BE%E7%89%8720220920105629.png

The basic operation of adjusting the file directory and so on, and configuring NGINX

QQ%E5%9B%BE%E7%89%8720220920105706.png

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

QQ%E5%9B%BE%E7%89%8720220920105958.png

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

QQ%E5%9B%BE%E7%89%8720220920110455.png

Download method example

QQ%E5%9B%BE%E7%89%8720220920111222.png

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

QQ%E5%9B%BE%E7%89%8720220920111832.png

Finally, go back to the basics, copy the url to download directly, and click the one that needs to set ua.

QQ%E5%9B%BE%E7%89%8720220920112618.png

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

QQ%E5%9B%BE%E7%89%8720220920113052.png

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.

QQ%E5%9B%BE%E7%89%8720220920112632.png

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.