Code Monkey home page Code Monkey logo

autoup's Introduction

洛阳理工学院健康汇报自动打卡

1.修改up.py

第17行写入用户名,密码,邮件

# 用户列表,在这里补充用户名,密码,email.
userlist =[{
    "username": "user1",
    "password": "ps1",
    "email"   : "email1"
},
    {
    "username": "user2",
    "password": "ps2",
    "email"   : "email2"
    }]

第126行设置第三方smtp服务

   # 第三方 SMTP 服务
    mail_host = ""  # 设置服务器
    mail_user = ""  # 用户名
    mail_pass = ""  # 口令
    sender = '' #发送邮件账号

2.服务器部署

1.将up.py和run.sh上传到服务器,我这里部署的路径是

/root/python_workspace

2.安装crontable(我的服务器是centos7)

yum install -y crontabs

3.赋予执行权限

chmod +x run.sh
chmod +x up.py

4.创建定时任务

crontab -e
5 0  * * * /root/python_workspace/run.sh >/tmp/123.log
crontab -l -u root

autoup's People

Contributors

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