banner
老言

老言博客

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

Aliyun Drive Auto Check-in

Now there should be no one still using Alibaba Cloud Drive. Can you tolerate the slow speed and the face of being ripped off by Baidu Cloud Drive? Although new users of Alibaba Cloud Drive now have less storage capacity than before, they can still receive one day of SVIP by checking in every day, which means they can have an additional 8TB of storage. However, checking in every day is indeed troublesome, so I have been looking for an automatic solution. I used to use a 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 check-in without the need for a server or any device. It is the AirScript script editor of WPS Cloud by Kingsoft. Let me teach you how to use it.

0_Rohr4bWu0XwOQOlO

Get Alibaba Cloud Drive refresh_token#

Because the script check-in requires authorization of Alibaba Cloud Drive login information 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 ask you to scan the QR code with the app. After successful scanning, refresh the page to get your token.
Token acquisition address:

https://alist.nn.ci/zh/guide/drivers/aliyundrive.html

Note that the token is very important, do not leak it, 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 will be leaked. Click on the three 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) menu above the document, select "高级工具" (Advanced Tools), and open the "AirScript 脚本编辑器" (AirScript Script Editor).

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

How to automate check-in#

The above steps are all manual operations. If we want automation, we need to enable the scheduling tool. Open the "效率" (Efficiency) menu above the document, select "高级工具" (Advanced Tools), and open "定时任务" (Scheduled Tasks) to set up a scheduled task to achieve automation.

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

Script address#

https://www.kdocs.cn/l/csY0HT0pmZOK

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