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
不務正業的新手肝硬化所碩士生
Tc-python - A Python script to receive message from a twitch chat

Twitch-Chat 📜 I did a script in Python to receive messages from a twitch chat.

miyucode 2 May 31, 2022
API to summarize input text

summaries API to summarize input text normal run $ docker-compose exec web python -m pytest disable warnings $ docker-compose exec web python -m pytes

Brad 1 Sep 08, 2021
Stop python warnings, no matter what!

SHUTUP - Stop python warnings, no matter what! Sometimes you just can't mute python warnings. Use this library to solve this. Installation pip install

80 Jan 04, 2023
HPomb Is Socail Engineering Tool , Used For Bombing , Spoofing and Anonymity Available For Linux And Android(Termux)

HPomb v2020.02 Coming Soon Created By Secanonm HPomb Is Socail Engineering Tool , Used For Bombing , Spoofing and Anonymity Available For Linux And An

Secanonm 10 Jul 25, 2022
Simple Crud Python vs MySQL

Simple Crud Python vs MySQL The idea came when I was studying MySQ... A desire to create a python program that can give access to a "localhost" databa

Lucas 1 Jan 21, 2022
Christmas tree on the desktop.

new-year-tree Christmas tree on the desktop. [Ссылка на статью habr]

Daniil Gorbenko 10 Dec 29, 2022
Mdisk - 🚧 On Construction 🚧

Mdisk Install For Package pip install mdisk pip install git+https://github.com/HeimanPictures/Mdisk.git Usage You can use this as python module or via

AkKiL 6 Aug 08, 2022
This is a Saleae Logic custom high level analyzer that allows you to search and mark specific packets.

SaleaePacketParser This is a Saleae Logic custom high level analyzer that allows you to search and mark specific packets. Field "Search For" is used f

1 Dec 16, 2021
A 100% python file organizer. Keep your computer always organized!

PythonOrganizer A 100% python file organizer. Keep your computer always organized! To run the project, just clone the folder and run the installation

3 Dec 02, 2022
Earth-to-orbit ballistic trajectories with atmospheric resistance

Earth-to-orbit ballistic trajectories with atmospheric resistance Overview Space guns are a theoretical technology that reduces the cost of getting bu

1 Dec 03, 2021
Module 2's katas from Launch X's python introduction course.

Module2Katas Module 2's katas from Launch X's python introduction course. Virtual environment creation process (on Windows): Create a folder in any de

Javier Méndez 1 Feb 10, 2022
A simple service that allows you to run commands on the server using text

Server Text A simple flask service that allows you to run commands on the server/computer over sms. Think of it as a shell where you run commands over

MT Devs 49 Nov 09, 2021
This repository holds those infrastructure-level modules, that every application requires that follows the core 12-factor principles.

py-12f-common About This repository holds those infrastructure-level modules, that every application requires that follows the core 12-factor principl

Tamás Benke 1 Dec 15, 2022
A simple program which gets a file(CSV/Excel) with tasks and creates different variants

TestMakerProject A simple program which gets a file(CSV/Excel) with tasks and creates different variants The main program is QTengine.py You only have

George 3 Nov 18, 2021
Lightweight Scheduled Blocks Checker for Current Epoch. No cardano-node Required, data is taken from blockfrost.io

ReLeaderLogs For Cardano Stakepool Operators: Lightweight Scheduled Blocks Checker for Current Epoch. No cardano-node Required, data is taken from blo

SNAKE (Cardano Stakepool) 2 Oct 19, 2021
Plux - A dynamic code loading framework for building plugable Python distributions

Plux plux is the dynamic code loading framework used in LocalStack. Overview The

LocalStack 65 Dec 20, 2022
Tiny demo site for exploring SameSite=Lax

samesite-lax-demo Background on my blog: Exploring the SameSite cookie attribute for preventing CSRF This repo holds some tools for exploring the impl

Simon Willison 6 Nov 10, 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
Helps compare between New and Old Tax Regime.

Income-Tax-Calculator Helps compare between New and Old Tax Regime. Sample Console Input/Output

2 Jan 10, 2022
Draw random mazes in python

a-maze Draw random mazes in python This program generates and draws a rectangular maze, with an entrance on one side and one on the opposite side. The

Andrea Pasquali 1 Nov 21, 2021