This is a script that will automatically check in your CordCloud account and get the traffic every day.
Original reference repo: https://github.com/Alluofuyo/cordcloud_checkin
You have two ways to use this script:
- Run the script in your machine.
python AutoCheckIn.py --username=<username> --password=<password> --url=<url>
username
: Your CordCloud username.Required.
password
: Your CordCloud password.Required.
url
: The cordcloud url ( e.g:https://www.cordc.net
note that you shouldn't add a/
behind the url).
- Run the script in Github Actions.(recommended)
First, fork this repository to your own repository.
Then update the cron time you want in you Github Actions workflow file.
And set theUSERNAME
,PASSWORD
andURL
in the Github Actions secrets which are in the repository settings rather than github settings.
I configured ServerChan (https://sct.ftqq.com/), so this repo needs to addSKEY
secret.
Github Action secret setting path:Settings->Secrets->Actions->New repository secret
.
This is an example for setting up the cron:
on:
schedule:
- cron: '0 16 * * *'
All done! ๐ธ ๐ธ ๐ธ