這隻小程式是為了確保每一天都能登入商業思維學院,取得商值,努力升級成為大佬!
- 需要安裝Python
- 透過Python安裝[Selenium]套件
- 需要安裝Chrome & ChromeDriver
- 這隻程式於Mac撰寫,Win請自行修改。
BusinessAutoTask.py 的 __init__中提供以下參數可自行修改
def __init__(self):
## 可更動參數 ##
# Chrome安裝路徑(預設Mac OS路徑)
# 詳細查閱:https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/
self.chromePath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
# ChromeDriver的路徑,預設在當前目錄(預設MAC OS執行檔,若為Win執行檔有.exe)
self.chromeDriver = './chromedriver'
# 要登入的信箱帳號
self.account = '輸入你的信箱'
# 要登入的信箱密碼
self.password = '輸入你的密碼'
其它更多配置可參閱源碼內部註解。