There's no such thing as a free lunch except web3.
discord server

Aliyun Drive automatic check-in

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:

CleanShot 2023-10-24 at 18.57.08@2x
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.

Script section

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.
CleanShot 2023-10-24 at 19.01.47@2x
Next, it's very simple. Copy the token you just obtained to the location shown in the image.

CleanShot 2023-10-24 at 19.04.36@2x
Then open the "效率" (Efficiency) tab at the top of the document, select "高级工具" (Advanced Tools), and open the AirScript script editor.

CleanShot 2023-10-24 at 19.06.24@2x
Click on "运行" (Run) in the script to complete the sign-in. Of course, there will also be prompts in the log.
CleanShot 2023-10-24 at 19.14.07@2x

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.

CleanShot 2023-10-24 at 19.15.59@2x
Just don't forget to select your script.

Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.