The sharing link of Baidu online disk is often reported to be invalid, so the masses of people have created various methods to bypass the problem of content violations, such as:
- Volume splitting compression
- Multiple Compression
- Instead of standard zip compression, use 7zip and other compression formats
- Avoid online decompression
- Delete or change the file suffix, for example, change the. zip format to. txt
- wait
The above methods can alleviate the problem of content violations to a certain extent, but still do not solve the problem of being reported when sharing content and the link being canceled.
Is there a more reliable way to share? Here is an introduction to sharing files by sending links in seconds to slow down the problem of cancellation caused by link reporting.
Principle of second transmission
The so-called second transmission of various online disks is actually the file uploaded by the user. There is already a copy on the online disk server. The online disk directly creates a soft link (shortcut link) to the original file on the server to the user name. Therefore, the user feels that the upload is completed in an instant.
Baidu online disk uses the MD5 mark of the original file+the MD5 mark of the file check section to mark an original file. There is only one original file of the same file on Baidu online disk.
For the so-called delete file operation, Baidu Netdisk did not physically delete the original file from the server, but only deleted the link relationship between the user and the original file.
Baidu online disk link failure occurs in the following cases:
The uploader deleted the original file, and the sharing link is invalid.
The sharing link has expired.
The sharing link was reported, resulting in the cancellation of the sharing link, but the original file can be shared again and downloaded normally
The original file corresponding to the sharing link is judged as illegal by Baidu online disk, and cannot be shared, downloaded or viewed online.
In case of 4, the original document has violated the rules, and there is no way to deal with it.
In case of 2 or 3, you can share or share the second transmission link again.
Principle of second transmission link
Baidu online disk provides Seconds file interface Section 2.6
Therefore, some experts thought: search related files directly on Baidu server according to MD5 of files, so as to realize transfer and sharing.
A second transmission link mainly includes the MD5 of the file check segment, which is the first 256KB of the file
Short link format vs. long link format
Usually, there are two formats of the second link, short link format and long link format:
Short link format : File full MD5 # File size (bytes) # File name
Long link format : Full file MD5 # The first 256KB of the file MD5 # File size (bytes) # File name
For example:
Short link format: AE3E4370D928AF833404A12B1A558FE9 # 287224754 # Quick completion of zero base gold absorption copy. 7z
Long link format: AE3E4370D928AF833404A12B1A558FE9 # 28CCD1B6D7EC3F714BF9671D1B2FC030 # 287224754 # Quick completion of zero base gold absorption copy. 7z
Because the original version of mengzonefire directly supports the online generation of Baidu Seconds links in short link format, it is simply too convenient, so most Seconds links are usually in short link format.
While the long link format needs to obtain the first 256KB content of the file, Baidu does not provide such an interface, and the long link was originally used on the PC side mfcDuDownloadCodeGenerator Such tools are generated.
The latest status: the resources shared in the short link format are basically killed, while the resources shared in the long link format can still be transferred normally using the mengzonefire version (including version 2.7.8).
Long link local generation method
At present, there are several:
1. Using mfcDuDownloadCodeGenerator
2. Use south plus Powershell script of "Happy Girl"
Personal recommendation mfcDuDownloadCodeGenerator
Open the second transmission link shared by others
1. Install the greasemonkey script manager
https://greasyfork.org/zh-CN
2. Install the script of "Seconds Transmission Link Extraction"
Yuanban Lin Made Second pass script , supports long chain transfer (only long chain!) and online long chain generation!!, Short chain transfer is not supported
(This version of the second pass script is made by Nan+Big Brother Yosaka Rin based on the script in 2.7.8. It supports long chain transfer (only long chain!) and online long chain generation!!, Short chain transfer is not supported)
Pro test can generate long chain online and transfer to long chain normally!!!
GreasyFork: https://greasyfork.org/zh-CN/scripts/468633
Github: https://github.com/tousakasp/rapid-upload-userscript-rinsp
The latest version is 3.1.6, please be sure to update to the latest version.
3. After the script is successfully installed, visit Baidu Disk website (computer version page) to see the second link button,
- Open in the "Seconds Transmission" dialog box obtain The API authorization code is valid for one month. If it expires, please update it again (can this interface survive for more than one month...) This step is used to obtain the developer access_token
- Select "Authorize" in the new window
- Close this new window when finished
- Return to the second transmission window, and the authorization code will be filled in automatically (if not, please copy and paste the url of the previous window manually)
- Enter the second transmission link provided by others to get the file
Generate second transmission link
Method 1: Create a second transmission link using the second transmission link extraction script
After installing the SecondPass link extraction, enter the Baidu online disk, select the file or folder you want to share, and a button to generate SecondPass will appear on the top. Click it to generate it online.
Method 2: Web version generation tool (locally generated)
https://rapid.acg.uy/gen.html
Only files are supported, not folders.
Method 3: Baidu PCS Go client generation, command line form
https://github.com/felixonmars/BaiduPCS-Go
Use the export command to generate the second transmission information
Authorization code acquisition method
the latest version Baidu Seconds Link Script The authorization code needs to be filled in when transferring, and the authorization code cannot be automatically obtained through script a while ago. Many people do not know how to obtain the authorization code.
The general steps can be referred to This document
1. First Baidu online disk open platform Complete personal developer certification
If the real name authentication is not done, complete the real name authentication first.
Then complete the binding of personal developer information, fill in the name, ID card, mobile phone number and other information
Please refer to: https://pan.baidu.com/union/doc/ml0g2vtvb
2. Create app
After the developer passes the authentication, create an application, fill in the relevant information of the application, and generate the relevant information of the application, including: Appid, Appkey, Secretkey, Signkey
Copy the Appkey to get access_token in the next step
Please refer to: https://pan.baidu.com/union/doc/fl0hhnulu
3. Get access_token
Replace MY_APPKEY of the following URL with the Appkey obtained in the previous step
http://openapi.baidu.com/oauth/2.0/authorize?response_type=token&client_id=MY_APPKEY&redirect_uri=oob&scope=basic ,netdisk
Copy the URL address above and open it in the browser address bar. After success, the following content will appear in the browser address bar
https://openapi.baidu.com/oauth/2.0/login_success#expires_in=2592000&access_token=111111111111111111111111&session_secret=&session_key=&scope=basic +netdisk
Where access_token=111111111111111111111111111 is the value of access_token, copy the content after access_token=, and fill in the script authorization code input box
4. Access_token Save and Retrieve
After the authorization code is entered in the SecondPass link script, the script will be automatically saved to the local, so it is not necessary to enter again within the validity period.
The valid period of access_token is one month. After the expiration, repeat the third step to obtain a new access_token, and then re-enter and save it.
Update log
2023/10/05 New authorization code acquisition method
Update 2023/09/05 to version 3.1.6
2023/08/12 script updated to GreasyFork version
2023/06/06 New Baidu Secondlink Latest Solution
2023/06/06 Delete Mengji format, Pandownload format 、 Ranger format 、 Baidu PCS Go format Introduction
On May 26, 2023, solutions to script deletion and non transfer were added
2021/04/07 https://greasyfork.org/zh-CN/scripts/397324 Invalid, change to https://greasyfork.org/zh-CN/scripts/424540
2020/12/25 Initialization
Please specify: Be a monk as before and become a Buddha more than enough » How to Create and Use Baidu Secondlink