天翼云盘自动签到
天翼云盘自动签到
本教程需要使用到python,版本要求python3.7以上,平台不限,win和Linux都行(支持云函数)。
本文以debian为例,python3请自行安装
拉取源码
| 1 | git clone --recursive https://github.com/arcturus-script/ecloud.git | 
如github访问失败,请输入
| 1 | git clone --recursive https://gh.lm379.cf/github.com/arcturus-script/ecloud.git | 
安装依赖
| 1 | cd ecloud | 
若为腾讯云函数
| 1 | pip3 install -r ./src/requirements.txt -t ./src | 
更改配置
| 1 | nano config.py | 
修改account和password为你天翼云盘的账号密码,需要推送消息还需要填写push字段
| 1 | config = { | 
然后ctrl+o保存,ctrl+x退出
运行
| 1 | python3 index.py | 
设置定时任务
假设文件夹放在用户目录下
| 1 | echo "python3 ~/ecloud/index.py" > task.sh | 
在文件中添加
| 1 | 30 5 * * *sh task.sh > task.log | 
表示每天5点半自动签到
效果
