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
不務正業的新手肝硬化所碩士生
A tool to help calculate how to split conveyors in Satisfactory into specific ratios.

Satisfactory Splitter Calculator A tool to help calculate how to split conveyors in Satisfactory into specific ratios. Dependencies Python 3.9 PyYAML

RobotiCat 5 Dec 22, 2022
Utility/Raiding selfbot made by Shell and Roover.

Utility/Raiding selfbot made by Shell and Roover. We are open to suggestions and ideas.

Shell 2 Dec 08, 2021
Box CRUD API With Python

Box CRUD API: Consider a store which has an inventory of boxes which are all cuboid(which have length breadth and height). Each Cuboid has been added

Akhil Bhalerao 3 Feb 17, 2022
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
FileTransfer - to exchange files from phone to laptop

A small website I locally host on my network to exchange files from my phone and other devices to my laptop.

Ronak Badhe 4 Feb 15, 2022
Versión preliminar análisis general de Covid-19 en Colombia

Covid_Colombia_v09 Versión: Python 3.8.8 1/ La base de datos del Ministerio de Salud (Minsalud Colombia) está en https://www.datos.gov.co/Salud-y-Prot

Julián Gómez 1 Jan 30, 2022
A TODO-list tool written in Python

PyTD A TODO-list tool written in Python. Its goal is to provide a stable posibility to get a good view over all your TODOs motivate you to actually fi

1 Feb 12, 2022
switching computer? changing your setup? You need to automate the download of your current setup? This is the right tool for you :incoming_envelope:

🔮 setup_shift(SS.py) switching computer? changing your setup? You need to automate the download of your current setup? This is the right tool for you

Mohamed Elfaleh 15 Aug 26, 2022
A pomodoro app written in Python

Pomodoro It's a pomodoro app written in Python. You can minimize it while you're working if you want to, it'll pop up on your screen when the timer is

Yiğit 1 Dec 20, 2021
Registro Online (100% Python-Mysql)

Registro elettronico scritto in python, utilizzando database Mysql e Collegando Registro elettronico scritto in PHP

Sergiy Grimoldi 1 Dec 20, 2021
Nimbus - Open Source Cloud Computing Software - 100% Apache2 licensed

⚠️ The Nimbus infrastructure project is no longer under development. ⚠️ For more information, please read the news announcement. If you are interested

Nimbus 194 Jun 30, 2022
Launcher program to select which version of the Q-Sys software to launch.

QSC-QSYS Launcher Launcher program to select which version of the Q-Sys software to launch. Instructions To use the application simply save the "Q-Sys

Zach Lisko 2 Sep 28, 2022
A Blender addon to align the origin to the top, center or bottom of a mesh object

Align Origin Blender Addon. Align Origin Blender Addon. What? This simple addon lets you align the origin to the top, center or bottom of a mesh objec

VA79 7 Nov 30, 2022
BDD base project: Python + Behave

BDD base project: Python + Behave Basic example of using Python with Behave (BDD). This Gherkin example includes: Basic Scenario Scenario Outline Tagg

eccanto 1 Dec 08, 2021
Feapder的管道扩展

FEAPDER 管道扩展 简介 此模块为feapder的pipelines扩展,感谢广大开发者对feapder的贡献 随着feapder支持的pipelines越来越多,为减少feapder的体积,特将pipelines提出,使用者可按需安装 管道 PostgreSQL 贡献者:沈瑞祥 联系方式:r

boris 9 Dec 07, 2022
Prints values and types during compilation!

Compile-Time Printer Compile-Time Printer prints values and types at compile-time in C++. Teaser test.cpp compile-time-printer

43 Dec 26, 2022
A python program, imitating functionalities of a banking system

A python program, imitating functionalities of a banking system, in order for users to perform certain operations in a bank.

Moyosore Weke 1 Nov 26, 2021
Notes on the Deep Learning book from Ian Goodfellow, Yoshua Bengio and Aaron Courville (2016)

The Deep Learning Book - Goodfellow, I., Bengio, Y., and Courville, A. (2016) This content is part of a series following the chapter 2 on linear algeb

hadrienj 1.7k Jan 07, 2023
HogwartsRegister - A Hogwarts Register With Python

A Hogwarts Register Installation download code git clone https://github.com/haor

0 Feb 12, 2022
Python MapReduce library written in Cython.

Python MapReduce library written in Cython. Visit us in #hadoopy on freenode. See the link below for documentation and tutorials.

Brandyn White 243 Sep 16, 2022