Giter Site home page Giter Site logo

cordcloud-check-in's Introduction

CordCloud签到脚本

觉得有用记得点个Star

CordCloud签到脚本一键运行签到,每次签到50到400MB的流量,一年就是17.82G到142.57G的流量,
也不少呢,总是忘记签到,所以写一个脚本可以一键签到,把这个脚本配置到开机启动或者定时任务就不用自己操作了。

安装

Windows

Linux

  • 下载脚本
    git clone https://github.com/DeaglePC/CordCloud-Check-in.git && cd CordCloud-Check-in
  • 安装依赖
    pip install -r requirements.txt

写配置文件

Windows

  • 参照config.json.bak文件,新建config.json
  • 填写登录参数(邮箱,密码)
{
    "LOGIN_FORM": {
    "email": "邮箱",
    "passwd": "密码",
    "code": ""
    }
}
  • 其他配置参数参考下面说明

Linux

  • 把你自己的登录参数(邮箱,密码)填到config.py
    比如我的email是[email protected] passwd是xxooxxoo
LOGIN_FORM = {
    "email": os.getenv("CC_EMAIL", "[email protected]"),
    "passwd": os.getenv("CC_PASSWD", "xxooxxoo"),
    "code": "",
}

为了安全你可以不把参数写进配置文件,也可以支持配置到环境变量

  • 配置config.py中的PROXIES参数
    由于访问CordCloud是需要代理的,所以这里需要配置一下代理,这个就不用多说了吧。我这里是clash的地址。(如果你是国外VPS),把PROXIES留空即可
PROXIES = {
    "http": "http://192.168.41.218:7890",
    "https": "http://192.168.41.218:7890",
}
  • 日志文件默认写到当前目录,你也可以自己配置一个目录,签到记录都在这里,如果有报错也会在这里
LOG_FILE = "./cc_auto_check_in.log"
  • 配置server酱提示(可选)
    支持server酱提示,如果脚本报错了也是会发送server酱提示的,这样可以及时知道脚本运行是否正常, ENABLE_SERVER_JIANG = False可以关闭server酱提示,默认关闭
    关于server酱
# server酱配置(非必填)
SERVER_CHAN_CONFIG = {
    "enable": False,  # True打开
    "key": os.getenv("SERVER_CHAN_KEY", "")
}

server_chan.jpg

运行

这里的python版本是3.7

Windows

直接双击运行cc_auto_check_in.exe
没有任何界面弹出是正常的。打开cc_auto_check_in.log查看结果

Linux/Unix

chmod +x cc_auto_check_in.sh
./cc_auto_check_in.sh

配置开机启动或者定时启动

这个就不用说了吧,如果不会可以去搜一下

windows

配置任务计划即可

Linux/Unix

配置crontab

效果

ec.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.