Now there should be no one who doesn't use Aliyun Pan and uses Baidu Netdisk instead. Can you tolerate the slow speed and the face of being exploited by Baidu Netdisk? Although Aliyun Pan no longer offers a large capacity for new users like it used to for old users, you can still receive one day of SVIP by signing in every day, which means you can have an additional 8TB of storage. However, signing in every day is indeed troublesome, so I have been looking for an automatic solution. I used to use the script in QuanX, but not everyone uses iOS, and not everyone is willing to spend $4.99 to buy QuanX for use. Today, I accidentally discovered a good tool that can achieve automatic sign-in without the need for a server or any device. It is the AirScript script editor of WPS Cloud by Kingsoft. Now I will teach you how to use it.
Obtaining Aliyun Pan refresh_token
Because the script sign-in requires authorization of Aliyun Pan login information in order to log in, we use the refresh_token method to log in. There are many ways to obtain the refresh_token, and the simplest way is to use the QR code scanning method on the alist official website:
Click on "获取 token" (Get token), and it will prompt you to use the app to scan the QR code. After successful scanning, refresh the page to obtain your token.
Token acquisition link:
Note that the token is very important and should not be leaked, otherwise others can easily log in to your account.
The script section is also very simple. First, you need to save the document I gave you to your own Kingsoft document, otherwise your token may be leaked. Click on the three horizontal bars on the left side of the document, select "另存" (Save As), and save it with a name that you can understand. Do not share it with others.
Next, it's very simple. Copy the token you just obtained to the location shown in the image.
Then open the "效率" (Efficiency) tab at the top of the document, select "高级工具" (Advanced Tools), and open the AirScript script editor.
Click on "运行" (Run) in the script to complete the sign-in. Of course, there will also be prompts in the log.
How to automate sign-in
The above steps are all manual operations. If we want automation, we need to enable the scheduling tool. Open the "效率" (Efficiency) tab at the top of the document, select "高级工具" (Advanced Tools), and open the "定时任务" (Scheduled Tasks) tool. Set a scheduled task to complete automation.
Just don't forget to select your script.