Coder Social home page Coder Social logo

qiandao's Introduction

仓库简介

  1. Python+GitHub实现CSDN的自动签到,并用钉钉机器人通知
  2. 满足抽奖条件执行抽奖操作
  3. 网易云音乐签到

仓库文件介绍

  1. csdn1.py 包括抽奖和签到
  2. wyy.py 网页端网易云签到

签到内容

  1. csdn 签到得积分
  2. 暂定一个 效果图

使用方法

  1. 将以上代码中headersdata替换成你自己的
  2. 点击这里【签到地址】,打开浏览器调式工具consoleF12或者ctrl+shift+i,点击network后点击签到控制台会生成新的文件,点击后获得此时的headerdatactrl+c复制下来
  3. 转换成字典形式,转换方法【查看方法】,当然嫌麻烦可以手动修改成字典形式

Github配置

  1. 将你的COOKIE和USERNAME 保存替换成以上样式,记得保存好COOKIE,将COOKIE使用环境变量放到GitHub仓库的secrets里面,如图所示
  2. 各个参数介绍
Secrets 参数介绍
USERNAME 你的CSDN的用户名
DD_POSTURL 钉钉群机器人的webhook地址,参考钉钉官方文档
DD_SECRET 设置钉钉机器人时的加签密钥
COOKIE_DRAW 执行抽奖时所需的COOKIR,获取方法与签到的cookie相同
COOKIE_SIGNED 执行签到时所需的COOKIR,获取方法与签到的cookie相同
WYYCOOKIE 获取方法相同
WYYCSRFTOKEN 在控制台获取 csrf_token 的值
QQ_SEND qq发件人信息格式 邮箱+smtp码 比如:[email protected]+********(加号为分隔符)
QQ_ACCEPT qq收件人邮箱

设置定时

  1. .github文件下的workflows中的csdn.yml中的corn的属性值修改
  2. 注意时差mg比我们地区快8个小时

参考

qiandao's People

Contributors

rr210 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.