GithubHelp home page GithubHelp logo

yb-autosign's Introduction

README

YB Network Project - 易班网络计划

  • python

Start

NumPy

 $ pip install numpy

对图像(验证码)矩阵的处理,以及PIL库的依赖

Pillow

$ pip install Pillow

图像(验证码)处理,编码等

Requests

$ pip install requests

网络请求

Baidu AI

文字识别OCR (baidu.com)

Setting

在 Config 中 编辑您的信息 !!!!!

签到内容为处理后的发送数据

loginData 为原始的登录发送数据

上面呢个解析了半天,下边呢个直接摆烂(我是懒🥚

Baidu AI 需要自己创建服务,OCR文字识别-高精度版 免费500次/天(标准版5万次,验证码预处理得好也非常好用)

Start

$ python main.py

Accomplish

实现方式

农大预处理

  1. 使用账户密码自动登录易班,获取 access_token https_waf_cookie
  2. 使用上述的两个凭证获取 cookie
  3. 使用 cookie 访问易班的农大跳转页,自动重定向到农大页面
  4. 使用易班 cookie 获取农大 Token
  5. 使用 Token 获取农大 cookie

百度AI预处理

  1. 使用 BaiduAI 的API Key 和 Secret Key 获取 Baidu Token

自动签到逻辑

  1. 使用农大 cookie 获取验证码
  2. 使用 numpy库对验证码进行去噪处理,具体实现参考岛屿的最大面积 (必要 ! 否则成功率下降 90% )

原图 ----处理----> 处理

  1. 使用 Baidu Token 调用文字识别接口
  2. 使用农大 cookie 发送验证码和登录信息, 若验证码错误 返回第 7 步 (max:10)
  3. 签到完成

Suggestion

放置服务器,开启定时任务,然后睡着觉把到签了😃

yb-autosign's People

Contributors

taiga-a 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.