Skip to main content

BaiduYun Share Link

Andy HsuMarch 12, 2023GuideStorageGuide302About 1 min

BaiduYun Share Link

Driver for BaiduYun share link, supports downloading but not uploading, using an unofficial api.

Settings

  1. You need to set surl and pwd to browse the directory, and you need to set BDUSS to download.

  2. surl is the part before ? after the sharing address pan.baidu.com/s/, pwd fill in the 4-digit extraction code, and leave blank if there is no extraction code.

  3. surl and pwd can be filled in with any account, but the account of the BDUSS parameter must use Baidu Super SVIP member

BDUSS is extracted from the cookie

Root folder file_id

The root folder to be mounted, the default is /

If you want to mount other folders, please see the example below

QA

settingerror messagetips
surl{"errno":2,"errtype":0}invalid share link
pwd{"errno":-130,"errtype":"mispwd-9"}invalid password
BDUSS{"errno":9019,"errmsg":"need verify"}invalid BDUSS, get a new one
UA{"error_code":31326,"error_msg":"user is not authorized, hitcode:119"}invalid user-agent, set a non-browser UA(ex. netdisk) or use web proxy
downFailed init storage: 200 OK; {"errno":-130,"The content shared by this link may not be accessible because it involves infringement, pornography, vulgarity and other information!

Developing

The api is from github.com/yuantuo666/baiduwp-phpopen in new window, an unofficial project.

We have developed the folder viewing and file downloading function, further developments are welcome.

Since we don't have an official document, there might be some compatible problems. You can give feedback on github.

We can't break those limits from Baidu and you should follow the official laws.

Add "User-Agent" usage example

If you don't know how to set "User-Agent" see here

The following methods are limited to Baidu super member users

Prompt again The following methods are limited to Baidu super member users

It will only be useful if a member finishes modifying "User-Agent" (choose official and 302)

If you don’t change "User-Agent", you can enable Web Agent, the disadvantage is that you need to build an Alist machine for transfer, that is to say, you need a large broadband to help you transfer

Tutorial on how to modify UA in web page 302 mode:
On the left is『Official』API,On the right is the『Crack』API

Web plugin
  • The advantage of using a browser plug-in to modify is that it can be played directly online, of course, downloading is also possible.

Example 1: If you really don’t know it, you can take a look at an example on the web page: https://www.bilibili.com/video/BV1UA4y1X7J8open in new window

Example 2: Another plugin method covering 360, Chrome, Edge: https://youtu.be/PP6b0WSzYMcopen in new window

alist

Kind tips
 Please check the reminder content carefully

1.The new version v3.25.0 has updated the new password method, and the acquisition method has also been changed. For details, please refer to the documentation page of your own installation method
2.v3.25.1 Aliyun_open can choose to mount the backup disk or resource library by itself, for details Click to view for details
3.The new version of AList version greater than v3.22.1 adds single sign-on to automatically register as an AList account, click to view the detailed description
4.139Cloudand189CloudFor details of changes, please view the document by yourself, respectively
5.v3.20.1version Breaking Changes View detailed description, go to Configure documentation page
6. AList v3.30.0 will no longer support Win7/Server2008 because Go does not support it. Click to view detailed instructions .
7.After adding the cloud disk, please configure [anti-theft/meta information] and other measures in time to prevent the account from being [frozen/disabled] due to malicious [access/sharing] by [crawlers/others].