banner
老言

老言博客

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

Aliyun Drive Automatic Sign-in

Now there shouldn't be anyone who doesn't use Alibaba Cloud Drive and instead uses a certain Baidu Cloud Drive, right? Can you tolerate the turtle speed and the money-grabbing face of Baidu Cloud Drive?? Although new users of Alibaba Cloud Drive now have less storage than before, and old users had more free storage, you can still receive one day of SVIP by signing in daily, which means you can have an additional 8T of storage. However, signing in every day is indeed very troublesome, so I've been looking for an automatic solution. Previously, I was using a script from QX, but not everyone uses iOS, and not everyone is willing to spend $4.99 to buy QX for use. Today, I accidentally discovered a good tool that can achieve automatic sign-in without a server or any device, which is Kingsoft's WPS Cloud's AirScript script editor. Below, I will teach you how to use it.

0_Rohr4bWu0XwOQOlO

Obtain Alibaba Cloud Drive refresh_token#

Since the script sign-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, the simplest being to use the QR code method on the alist official website:

CleanShot 2023-10-24 at 18.57.08@2x
Click to obtain the token, and it will prompt you to scan the QR code with the app. After successfully scanning, refresh 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 into your account.

Script Section#

The script section is also very simple. First, you need to save the document I provided to your own Kingsoft document, otherwise your token will be leaked. Click the three horizontal lines on the left of the document, select "Save As," and save it with a name you can understand. Be sure not to share it.
CleanShot 2023-10-24 at 19.01.47@2x
Next, it's very simple. Copy the token you just obtained to the position shown in the picture.

CleanShot 2023-10-24 at 19.04.36@2x
Next, open the document's Efficiency --- Advanced Tools -- AirScript script editor.

CleanShot 2023-10-24 at 19.06.24@2x
Click to run this script to complete the sign-in, and of course, there will also be prompts in the logs.
CleanShot 2023-10-24 at 19.14.07@2x

How to Automatically Sign In#

The above steps are for manual execution. We need it to be automatic, so enable the scheduling tool by going to Efficiency --- Advanced Tools -- Scheduled Tasks in the document to set a scheduled task for automation.

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

Script Address#

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

This message is used to verify that this feed (feedId:56339920937229323) belongs to me (userId:55158161788401664). Join me in enjoying the next generation information browser https://follow.is.

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