Skip to content

基于python35,使用基于Linux的任务命令,CNIC自动打卡程序。

License

Notifications You must be signed in to change notification settings

xiaorancs/cnic-punch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

喵喵打卡

喵喵打卡是基于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任务,建议百度

About

基于python35,使用基于Linux的任务命令,CNIC自动打卡程序。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages