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
不務正業的新手肝硬化所碩士生
dotfiles - Cristian Valero Abundio

In this repository you can find various configurations to configure your Linux operating system, preferably ArchLinux and its derivatives.

Cristian Valero Abundio 1 Jan 09, 2022
A tool to improve Boolean satisfiability (SAT) solver user's life

SatHelper This is a tool to improve the Boolean satisfiability (SAT) and MaxSAT solver user's life. It helps you model various problems as SAT and Max

Tomas Balyo 1 Nov 16, 2021
Collection of Python scripts to perform Eikonal Tomography

Collection of Python scripts to perform Eikonal Tomography

Emanuel Kästle 10 Nov 04, 2022
These are my solutions to Advent of Code problems.

Advent of Code These are my solutions to Advent of Code problems. If you want to join my leaderboard, the code is 540750-9589f56d. When I solve for sp

Sumner Evans 5 Dec 19, 2022
An animal facts python module

An animal facts python module

Fayas Noushad 3 Dec 19, 2021
A Python 3 client for the beanstalkd work queue

Greenstalk Greenstalk is a small and unopinionated Python client library for communicating with the beanstalkd work queue. The API provided mostly map

Justin Mayhew 67 Dec 08, 2022
A tool to replace all osu beatmap backgrounds at once.

OsuBgTool A tool to replace all osu beatmap backgrounds at once. Requirements You need to have python 3.6 or newer installed. That's it. How to Use Ju

Aditya Gupta 1 Oct 24, 2021
Chat meetup

FLiP-Meetup-Chat Chat meetup create function bin/pulsar-admin functions create --auto-ack true --jar pulsardjlexample-1.0.jar --classname "dev.pulsarf

Timothy Spann 1 Dec 09, 2021
TrainingBike - Code, models and schematics I've used to interface my stationary training bike with PC.

TrainingBike Code, models and schematics I've used to interface my stationary training bike with PC. You can find more information about the project i

1 Jan 01, 2022
Blender 3.1 Alpha (and later) PLY importer that correctly loads point clouds (and all PLY models as point clouds)

import-ply-as-verts Blender 3.1 Alpha (and later) PLY importer that correctly loads point clouds (and all PLY models as point clouds) Latest News Mand

Michael Prostka 82 Dec 20, 2022
Fixed waypoint(pose) navigation for turtlebot simulation.

Turtlebot-NavigationStack-Fixed-Waypoints fixed waypoint(pose) navigation for turtlebot simulation. Task Details Task Permformed using Navigation Stac

Shanmukha Vishnu 1 Apr 08, 2022
Path of Exile Vendor Recipe Tracker (Chaos/Regal orb)

Path of Exile Vendor Trade Tracker Are you tired of manually keeping track of collected and missing items for farming Chaos or Regal Orbs in PoE? Me t

1 Nov 09, 2021
Discovering local read-level DNA methylation patterns and DNA methylation heterogeneity in intermediately methylated regions

Discovering local read-level DNA methylation patterns and DNA methylation heterogeneity in intermediately methylated regions

1 Jan 11, 2022
TriOTP, the OTP framework for Python Trio

TriOTP, the OTP framework for Python Trio See documentation for more informations. Introduction This project is a simplified implementation of the Erl

David Delassus 7 Nov 21, 2022
Procedurally generated Oblique Strategies for writing your own Oblique Strategies

Procedurally generated Oblique Strategies for writing your own Oblique Strategies.

Gordon Brander 13 Aug 17, 2022
Decentralized intelligent voting application.

DiVA Decentralized intelligent voting application. Hack the North 2021. Inspiration Following the previous US election, many voters were fearful that

Ali Shariatmadari 4 Jun 05, 2022
Animation picker for Audodesk Maya 2017 (or higher)

Dreamwall Picker Animation picker for Audodesk Maya 2017 (or higher) Authors: Lionel Brouyère, Olivier Evers This tool is a fork of Hotbox Designer (L

DreamWall 93 Dec 21, 2022
UniPD exam dates finder

UniPD exam dates finder Find dates for exams at UniPD Usage ./finder.py courses.csv It's suggested to save output to a file: ./finder.py courses.csv

Davide Peressoni 1 Jan 25, 2022
pyreports is a python library that allows you to create complex report from various sources

pyreports pyreports is a python library that allows you to create complex reports from various sources such as databases, text files, ldap, etc. and p

Matteo Guadrini aka GU 78 Dec 13, 2022
Dump Data from FTDI Serial Port to Binary File on MacOS

Dump Data from FTDI Serial Port to Binary File on MacOS

pandy song 1 Nov 24, 2021