Code Monkey home page Code Monkey logo

hecaiyun's Introduction

HeCaiYun

和彩云自动打卡签到

搬运自xuthus5/HeCaiYun,改为github action版本

需要自行在.github/workflows/run.yml添加定时任务(不建议Actions运行,有可能会导致封号)

服务器运行

安装脚本所需依赖

pip3 install request

获取Cookie

打开和彩云签到有礼 (10086.cn)页面=>登录=>按F12打开开发者工具-Network=>F5刷新页面=>过滤参数填caiYunSignIn=>找到caiYunSignIn.action请求=>点击查看cookie,只要从JSESSIONID到第一个;,即类似于JSESSIONID=8BCB8BCB8BCB8BCB8BCB8BCB8BCB8BCB-n1;的内容。

修改脚本代码13-16行参数

OpenLuckDraw = True if os.getenv("LUCK_DRAW") == 'true' else False  # 是否开启自动幸运抽奖(首次免费, 第二次5积分/次) 不建议开启 否则会导致多次执行时消耗积分
PUSHPLUS_TOKEN = os.environ['PUSHPLUS_TOKEN']  # PushPlus Token
Cookie = os.environ['COOKIE']  # 抓包Cookie
Referer = os.environ['REFERER']  # 抓包referer

Secret

Settings->Secrets->New repository secret,添加以下Secret:

  • COOKIE:抓包Cookie
  • REFERER:抓包referer
  • PUSHPLUS_TOKEN:PushPlus Token
  • LUCK_DRAW:是否开启自动幸运抽奖. true:开启; 不填/其他:不开启. (首次免费, 第二次5积分/次) 不建议开启 否则会导致多次执行时消耗积分

hecaiyun's People

Contributors

doublog avatar

Stargazers

 avatar

Watchers

 avatar

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.