Giter Site home page Giter Site logo

autodailycheck's Introduction

如需使用请自行更改地址,本Repository不再更新

AutoDailyCheck 个人使用方法

简单上手

  1. 首先你需要一台电脑或虚拟机,安装python3和pip
  2. 使用pip下载requests库
  3. 只需下载该仓库内的personal.py文件,修改uname和upswd为自己的学号和密码
  4. 定时运行这个py代码即可(例如使用cron或Windows计划任务)

AutoDailyCheck 多人项目构建

每日自动晨午晚检,解放双手~
Powered by Python + Flask

立即上手

DEMO

Debug方法

  1. Checkout codes
  2. Requirements: Python3 and Linux OS (Not supported on Windows when using gunicorn)
  3. Create a new file "users.json" in sever folder.
    Format like this:
    {"ID1":"password2", "ID2":"Password2"}
  4. execute python3 -m pip install -r requirements.txt
  5. execute python3 -m flask run -h Host -p Port

You can also uncomment the main function in app.py and run python3 app.py

性能突破

由于本身性能的问题,Flask 并不适合直接用作web 服务器,常见的方案是使用Flask+gunicorn+nginx gunicorn 配合gevent 可以高效代理WSGI应用程序

gunicorn -c config.py app:app

也可以使用PythonAnyWhere、Heroku、Azure等部署,详情参考:Deployment Options

TODO

  1. 首次接触Flask所以app.py写的非常乱,希望有好心人PR
  2. 输入过滤在做了,也希望有好心人PR

(我是大懒蛋)

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.