-
自動化登入:自動填寫帳號、密碼及統一編號,登入財政部電子發票整合服務平台。
-
CAPTCHA 驗證:內建使用 OpenAI Whisper 進行處理。
-
批次下載:下載當月折讓單發票為 Excel 檔案,每月 7日 前同時下載上月折讓單發票。
-
Python 3.x
-
Google Chrome 瀏覽器
-
ChromeDriver:需與 Chrome 瀏覽器版本相符。
-
使用 pip 安裝專案所需的套件:
pip install selenium aiohttp whisper -
下載 ChromeDriver:
預設路徑為chromedriver-win64\chromedriver.exe -
設定
loginInfo.py登入資訊:
ban = "統一編號"
user_id = "帳號"
password = "密碼"
User = "Windows使用者名稱"
開啟終端並輸入 python InvoiceDownloader.py
※ 程式會自動開啟 Chrome 瀏覽器,執行登入、導航及下載流程,並在完成後關閉瀏覽器。