Git Product home page Git Product logo

yiban_autosgin's Introduction

易班自动签到

本项目仅供学习与研究使用, 一切后果由使用者承担. 非常感谢 fyiban 项目作者

实现功能

  • 校本化晚点签到
  • 多用户
  • Server酱推送
  • 多线程签到
  • 命令行参数
  • 图形化配置用户信息

使用教程

初始化

注意: Python版本要3.8以上
克隆仓库
安装 requirements 中的依赖
进入src目录
创建userData.py文件, 内容如下

user_data = [{
	'Phone': '手机号',
	'PassWord': '密码(明文)',
	'SendKey': 'Server酱 Token Key', # 用于微信通知, 在Server酱官网注册用户获取
	'Address': '定位地址' 
},# 第二个人. 如果不需要, 只保留,号前的内容和最后的]号就行
{
	'Phone': '手机号',
	'PassWord': '密码(明文)',
	'SendKey': 'Server酱 Token Key',
	'Address': '定位地址' 
}]

定位地址的格式(Json): {"Reason":"","AttachmentFileName":"","LngLat":"经度,纬度","Address":"省 市 区 路 号"}
学校坐标可通过高德开放平台 https://lbs.amap.com/tools/picker 获取

Server酱 官网

一切准备就绪后, 双击 yibanAutoSign.py 就可以运行了.
一般情况下, 签到是限定时间的. 所以在限定时间外签到肯定会失败, 而且会浪费 Server酱 每日免费额度(5次)

自动执行

Windows

使用计划任务, 要保证在签到时间内网络通畅, 以及设备在线(电脑不开机怎么执行任务)
具体教程百度或 点这里

Linux

使用 Crond 或类似的计划任务程序
你会Linux应该不用我教了

Docker

# 构建镜像,仅第一次运行需要
docker build -t yiban_auto_sgin .
# 运行镜像,后续直接 "docker start yiban" 就可以启动了
docker run --name yiban -v /path/to/userData.py:/works/userData.py yiban_auto_sgin

GitHub Action

取消 Action 中关于时间的注释.
注意: GitHub 使用的时间可能是UTC
默认Cron对应的时间是 22:00, 需要按实际情况修改.
使用 GnuPG 软件对称加密 userData.py 文件, 在 secrets 新建 PassWord 项, 将密钥存储在 secretsPassWord

赞助

如果觉得项目对你有帮助,可以去我的 个人博客 随便一篇文章末尾扫码进行赞助。

yiban_autosgin's People

Contributors

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