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
不務正業的新手肝硬化所碩士生
Template (v0) do Sistema Chatbot - atividade síncrona - INE5404

ine-5404-sistema-chatbot-template Template (v0) do Sistema Chatbot - atividade síncrona - INE5404 Veja abaixo um exemplo de funcionamento do sistema:

0 Dec 07, 2021
A water drinking notification every hour to keep you healthy while coding :)

Water_Notification A water drinking notification every hour to keep you healthy while coding. 💧 💧 Stay Hydrated Stay Healthy 💧 💧 Authors @CrazyCat

Arghya Banerjee 1 Dec 22, 2021
Linux GUI app to codon optimize many single-fasta files with coding sequences , using many taxonomy ids

codon_optimize_cds_with_many_taxids_singlefasta Linux GUI app to codon optimize many single-fasta files with coding sequences, using many taxonomy ids

Olga Tsiouri 1 Jan 23, 2022
Python Project For Beginner

Basic-Vitrual-AI-Assistant Python Project For Beginner Hey There, I had manipulated Selenium WebDriver to make this assistant. I hope, It will be help

Maruf Billah 13 Dec 12, 2022
Test to grab m3u from YouTube live.

YouTube_to_m3u https://raw.githubusercontent.com/benmoose39/YouTube_to_m3u/main/youtube.m3u Updated m3u links of YouTube live channels, auto-updated e

136 Jan 06, 2023
Backend Interview Challenge

Inspect HOA backend challenge This is a simple flask repository with some endpoints and requires a few more endpoints. It follows a simple MVP (model-

1 Jan 20, 2022
Security-related flags and options for C compilers

Getting the maximum of your C compiler, for security

135 Nov 11, 2022
Final project in KAIST AI class

mmodal_mixer MLP-Mixer based Multi-modal image-text retrieval Image: Original image is cropped with 16 x 16 patch size without overlap. Then, it is re

SuperSuperMoon 5 May 30, 2022
Project Guide for ASAM OpenX standards

ASAM Project Guide Important This guide is a work in progress and subject to change! Hosted version available at: ASAM Project Guide (Link) Includes:

ASAM e.V. 2 Mar 17, 2022
This alerts you when the avalanche score a goal

This alerts you when the avalanche score a goal

Davis Burrill 1 Jan 15, 2022
The dynamic code loading framework used in LocalStack

localstack-plugin-loader localstack-plugin-loader is the dynamic code loading framework used in LocalStack. Install pip install localstack-plugin-load

LocalStack 5 Oct 09, 2022
A way to write regex with objects instead of strings.

Py Idiomatic Regex (AKA iregex) Documentation Available Here An easier way to write regex in Python using OOP instead of strings. Makes the code much

Ryan Peach 18 Nov 15, 2021
Nicotine+: A graphical client for the SoulSeek peer-to-peer system

Nicotine+ Nicotine+ is a graphical client for the Soulseek peer-to-peer file sharing network. Nicotine+ aims to be a pleasant, Free and Open Source (F

940 Jan 03, 2023
Schemdule is a tiny tool using script as schema to schedule one day and remind you to do something during a day.

Schemdule is a tiny tool using script as schema to schedule one day and remind you to do something during a day. Platform Python Install Use pip: pip

StardustDL 4 Sep 13, 2021
Decipher using Markov Chain Monte Carlo

Decipher using Markov Chain Monte Carlo

Science étonnante 43 Dec 24, 2022
More granular intermediaries for legacy Minecraft versions

Orinthe/Intermediary mappings This repository contains the match information between different versions of Minecraft created by the Orinthe project, a

4 Jan 11, 2022
Курс "Искусственный интеллект и машинное обучение"

Искусственный интеллект и машинное обучение О курсе Данный репозиторий содержит в себе сопроводительный учебный материал для курса "Искусственный инте

Dmitry Aladin 19 Dec 04, 2022
pspsps(1) is a compyuter software to call an online catgirl to the Linux terminyal.

pspsps(1): call a catgirl from the Internyet to the Linux terminyal show processes: ps show catgirls: pspsps —@ Melissa Boiko 32 Dec 19, 2022

A bot to view Dilbert comics directly from Discord and get updates of the comics automatically.

A bot to view Dilbert comics directly from Discord and get updates of the comics automatically

Raghav Sharma 3 Nov 30, 2022
🙌Kart of 210+ projects based on machine learning, deep learning, computer vision, natural language processing and all. Show your support by ✨ this repository.

ML-ProjectKart 📌 Repository This kart showcases the finest collection of all projects based on machine learning, deep learning, computer vision, natu

Prathima Kadari 203 Dec 28, 2022