Last update at :2024-05-04,Edit by888u
Using wget to download files from Baidu Netdisk is actually very simple. It mainly consists of three steps① Obtain the real download address of the file ② Add the source in wget ③ Start downloading.
Obtaining the real download address of the file is very simple. It is recommended to use the Grease Monkey script here. Address: https://greasyfork.org/zh-CN/scripts/30537-%E7%99%BE%E5%BA%A6%E7%BD %91%E7%9B%98%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%E5%8A%A9%E6%89%8B
Through this script, we can get the real address of the file we need to download and save the download address.
The next step is to obtain the source. The source can be entered into the homepage address of Baidu Netdisk after logging in. Please check the URL of the page, which is usually this: https://pan.baidu.com/disk/home#list/path=%2F&vmode= list
So, now we can use wget to download, the command is similar to the following
wget -c --referer='https://pan.baidu.com/disk/home#list/vmode=list&path=%2F' -O 1.iso 'Real address of the file'
A brief explanation, if you have read this article: http://www.138vps.com/jc/1002.html, there should be no need to say more.
-c indicates support for breakpoint transmission and is generally recommended for downloading larger files. It is possible that we have stopped downloading normally, and there is no need to start from 0 when downloading again. You can continue downloading from the last time.
--referer indicates the source. If the source is not added, wget will not download successfully, and Baidu Netdisk will directly return an error message.
What follows -O is the file name, which is the name of the file we want to save. Here it is saved as a 1.iso file.
I won’t go into details about the real address of the file, it’s a long, long list of things.
Some friends have another problem. What if I wget files shared by others? Using the source of the above command will not work.
The solution is also very simple, save the file to your network disk and then download it; or, change the source to the URL of the current page.
Recommended site search: foreign free website server Taiwan server, vps dynamic ip server, Hong Kong space, how much does it cost to rent a server for one year, website space registration-free, domain name transfer, Chinese domain name registration query, mobile server hosting , dynamic vps change IP in seconds,
发表评论