台灣弘訊 EIP 自動登入腳本 基於安全性考量,只實作較保守的查看功能
Go to file
kinoshitakenta f9792b99e0
chore: add Beerware license
2025-08-18 14:05:10 +08:00
utils docs: use straight quotes (') instead of typographic apostrophes (’) 2025-07-03 13:26:29 +08:00
.gitignore chore: use uv to manage the environment 2025-06-20 13:37:38 +08:00
LICENSE chore: add Beerware license 2025-08-18 14:05:10 +08:00
README.md docs: updates README documentation 2025-08-18 13:41:46 +08:00
config.toml.example feat: add example configuration file 2025-05-19 15:58:34 +08:00
main.py fix: prompt re-login on expired Selenium session to prevent crash 2025-07-03 17:06:25 +08:00
pyproject.toml chore: use uv to manage the environment 2025-06-20 13:37:38 +08:00

README.md

auto_login_EIP

太常要訂便當了,所以寫個自動登入 EIP 的東西
省的每次都要找 EIP 的網址是什麼

env

  • Python
  • uv
  • 剩下的 uv 會幫你裝

repository structure

./auto_login_EIP/
├── main.py        # main file
├── config.toml    # config file
│
├── utils/
│
├── pyproject.toml
├── .gitignore
└── README.md

usage

配置

config.toml 設定好登入資訊,如果員工 ID 與密碼留空則會在登入時詢問你
專案路徑下有一個 config.toml.example 提供作為修改模板

執行

# uv run python main.py

或指定 config 檔

# uv run python main.py --config_path .\YOUR_CONFIG.toml

如果要酷一點的話串個 Windows 工作排程器或 Linux crontab
這樣每天早上就會自動幫你把 EIP 開起來,就能當個認真的模範打工仔了

我要繼續去 coding ㄌ各位88