NYCU(NCTU)-差勤-助教

Overview

NCTU-TA-fill

填寫 差勤-助教時數

有沒有覺得在差勤系統填助教時數有點浪費生命?
今天有個懶鬼浪費好多時間幫大家寫了code
只要填好的必要的資料,就可以讓電腦自動幫你完成差勤助教的時數填寫喔!
https://pt-attendance.nctu.edu.tw/verify/userLogin.php

python module 清單:

  • selenium (以及下載相應的 webdriver)
  • pyautogui
  • intervals
  • bs4
  • fake_useragent (optional) :
    • 若不使用請# 以下
      from fake_useragent import UserAgent
      
      ua = UserAgent(verify_ssl=False)
      user_agent = ua.random
      headers = {'user-agent': user_agent}
      

使用方法:

  • 下載 main.py 文件並用文字編輯開啟
  • Required(第二區塊):
    • Date = [想排除的日期] + [今天之後的日期] + [國定假日]
      Date 條件: 1< Date[i] <=月底 and Date[i]不得重複
      Example: 假設今天28號, 任意一式皆可
      Date = [] + [x+1 for x in range(td.day, we)] + list(range(2, 6))
      Date = [] + [29, 30] + [2, 3, 4, 5]
      Date = [] + [29, 30, 2, 3, 4, 5]
      Date = [] + [29, 2, 30, 3, 4, 5]
      Date = [3, 29, 4, 30, 5, 2]
      
    • 星期幾 = [想排除的節數]
      可填入1, 2, 3, 4, 5, 6, 7, 8, 9, 'am', 'pm', 'all'
      Sun = ['pm']
      Mon = [2,4,6,8,'all']
      Tue = [2,4,6,8,'pm']
      Wed = []  # 可以空著, 但不能刪掉
      ...
      
  • Optional:
    • S字典: 可自定義時間區間(optional)
      S = {1: I.closedopen("08:00", "08:50"), 2: I.closedopen("09:00", "09:50"), 3: I.closedopen("10:10", "11:00"), 4: I.closedopen("11:10", "12:00"), 5: I.closedopen("13:20", "14:10"), 6: I.closedopen("14:20", "15:10"), 7: I.closedopen("15:30", "16:20"), 8: I.closedopen("16:30", "17:20"), 9: I.closedopen("17:30", "18:20"),
       'all': I.closedopen("08:00", "18:20"),  # 可自定義區間
       'am': I.closedopen("08:00", "12:00"),
       'pm': I.closedopen("13:00", "18:20")}
      
  • 打開terminal
  • 鍵入cd /Users/......./Downloads/.......
  • 鍵入python3 THE_FILE_NAME.py
  • 程式運行時, 請勿移動/捲動滑鼠或新開其他程式
  • 依指示操作即可(可混)
    • k : 刪除 簽到單/時數
    • m : 手動操作
    • d : 使用預先輸入帳密
    • 直接按Enter : d + k

示範影片:

  • v1.5
NCTU-TA-fill-1-1.mov
NCTU-TA-fill-1-2.mov
NCTU-TA-fill-1-3.mov
markdown 學習中
You might also like...
Releases(1.6)
Owner
不務正業的新手肝硬化所碩士生
The ldapconsole script allows you to perform custom LDAP requests to a Windows domain

ldapconsole The ldapconsole script allows you to perform custom LDAP requests to a Windows domain. Features Authenticate with password Authenticate wi

Podalirius 38 Dec 09, 2022
It was created to conveniently respond to events such as donation, follow, and hosting using the Alert Box provided by twip to streamers

This library is not an official library of twip. It was created to conveniently respond to events such as donation, follow, and hosting using the Alert Box provided by twip to streamers.

junah201 8 Nov 19, 2022
Blender-3D-SH-Dma-plugin - Import and export Sonic Heroes Delta Morph animations (.anm) into Blender 3D

io_scene_sonic_heroes_dma This plugin for Blender 3D allows you to import and ex

Psycrow 3 Mar 22, 2022
Tindicators is a Python library to calculate the values of various technical indicators

Tindicators is a Python library to calculate the values of various technical indicators

omar 3 Mar 03, 2022
GWCelery is a simple and reliable package for annotating and orchestrating LIGO/Virgo alerts

GWCelery is a simple and reliable package for annotating and orchestrating LIGO/Virgo alerts, built from widely used open source components.

Min-A Cho Zeno 1 Nov 02, 2021
Port of the OpenCascade library to JavaScript / WebAssembly using Emscripten

OpenCascade.js A port of the OpenCascade CAD library to JavaScript and WebAssembly via Emscripten. Explore the docs » Examples · Issues · Discuss Proj

Sebastian Alff 347 Jan 08, 2023
BloodCheck enables Red and Blue Teams to manage multiple Neo4j databases and run Cypher queries against a BloodHound dataset.

BloodCheck BloodCheck enables Red and Blue Teams to manage multiple Neo4j databases and run Cypher queries against a BloodHound dataset. Installation

Mr B0b 16 Nov 05, 2021
A faster copy of nell's comet nuker

Astro a faster copy of nell's comet nuker also nell uses external libraries like it's cocaine man never learned to use ansi color codes (ily nell) (On

horrid 8 Aug 15, 2022
A practice program to find the LCM i.e Lowest Common Multiplication of two numbers using python without library.

Finding-LCM-using-python-from-scratch Here, I write a practice program to find the LCM i.e Lowest Common Multiplication of two numbers using python wi

Sachin Vinayak Dabhade 4 Sep 24, 2021
A beautiful and useful prompt for your shell

A Powerline style prompt for your shell A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh: Shows some important details about the

Buck Ryan 6k Jan 08, 2023
PyDy, short for Python Dynamics, is a tool kit written in the Python

PyDy, short for Python Dynamics, is a tool kit written in the Python programming language that utilizes an array of scientific programs to enable the study of multibody dynamics. The goal is to have

PyDy 307 Jan 01, 2023
Xbps-install wrapper written in Python that doesn't care about case sensitiveness and package versions

xbi Xbps-install wrapper written in Python that doesn't care about case sensitiveness and package versions. Description This Python script can be easi

Emanuele Sabato 5 Apr 11, 2022
Beatsaber for Python

beatsaber Beatsaber for Python It was automatically generated with mkpylib. If you're reading this message, it m

Shawn Presser 3 Jul 30, 2021
Just some information about this nerd.

Greetings, mates, I am ErrorDIM - aka ErrorDimension 👋 🧬 Programming Languages I Can Use: 🥇 Top Starred Repositories: # Name Stars Size Major Langu

ErrorDIM 3 Jan 11, 2022
Terrible sudoku solver with spaghetti code and performance issues

SudokuSolver Terrible sudoku solver with spaghetti code and performance issues - if it's unable to figure out next step it will stop working, it never

Kamil Bizoń 1 Dec 05, 2021
End-to-End text sumarization, QAs generation using flask.

Help-Me-Read A web application created with Flask + BootStrap + HuggingFace 🤗 to generate summary and question-answer from given input text. It uses

Ankush Kuwar 12 Nov 13, 2022
EFB Docker image with efb-telegram-master and efb-wechat-slave

efb-wechat-docker EFB Docker image with efb-telegram-master and efb-wechat-slave Features Container run by non-root user. Support add environment vari

Haukeng 1 Nov 10, 2022
Backups made easy, automated, monitored and SECURED with an audited encryption

Backup Controller Backups made easy, automated, monitored and SECURED with an audited encryption. Schedules backup tasks executed by Backup Maker, upl

RiotKit 1 Jan 30, 2022
A nonebot2 plugin, send news information in a picture form.

A nonebot2 plugin, send news information in a picture form.

幼稚园园长 7 Nov 18, 2022
A collection of examples of using cocotb for functional verification of VHDL designs with GHDL.

At the moment, this repo is in an early state and serves as a learning tool for me. So it contains a a lot of quirks and code which can be done much better by cocotb-professionals.

T. Meissner 7 Mar 10, 2022