Giter Club home page Giter Club logo

cnic-punch's Introduction

喵喵打卡

喵喵打卡是基于python3.5的任务型的打卡程序,需要在电脑终端开启定时任务.定时打卡上班或者下班,防止使用中忘记打卡。
支持多人随机打卡,随机时间要根据任务的开始的时间稍微计算一下。 程序的优点

  • 简单快捷,不用开启服务
  • 使用任务式方式,不占用电脑资源
  • 提供邮箱提醒功能
  • 基于任务,自己收到设置打卡时间和次数
  • 多人随机打卡

程序的不足:

  • 不同远程直接访问操作,需要后台进行手动添加

使用方式很简单:
只需调用daka.py中的main函数,输入自己的邮箱和密码到main函数中对的userlist中即可。(注意一定要输入正确的邮箱和密码)

python daka.py

使用Linux crontab 命令创建定时任务(详细命令,请百度) 方法1.

crontab -e
# 创建上班打卡任务,使用文件的绝对路径,建议python解释器也使用绝对路径
# 每周1-5的早上7:40 准时打卡下班,邮件提醒
40 7 1-5 * * python daka.py >> check.log 2>&1

# 创建下班打卡任务,每周1-5的早上17:30 准时打卡下班,邮件提醒
30 17 1-5 * * python daka.py >> check.log 2>&1

方法2.

vim /etc/crontab
# 创建上班打卡任务,使用文件的绝对路径,建议python解释器也使用绝对路径
# 每周1-5的早上7:40 准时打卡下班,邮件提醒
40 7 1-5 * * root python daka.py >> check.log 2>&1

# 创建下班打卡任务,每周1-5的早上17:30 准时打卡下班,邮件提醒
30 17 1-5 * * root python daka.py >> check.log 2>&1

注: 注意使用python3,如果不熟悉Linux crontan任务,建议百度

cnic-punch's People

Contributors

xiaoran-2 avatar xiaorancs avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

moonh2o

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.