From 5d20bd9d79e4aa1b36d0e75cf4dc00cb212942d6 Mon Sep 17 00:00:00 2001 From: CHUN YU YAO Date: Thu, 2 Dec 2021 02:51:21 +0800 Subject: [PATCH] update packages and requirement --- README.md | 14 +++++++------- pip-reg.txt | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f58ede4..e3c52dd 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,15 @@ change the chromedrive in chrome_tixcraft.py, source code: chromedriver_path =Root_Dir+ "webdriver/chromedriver" the default path is the script path + "webdriver/chromedriver", My suggestion is to create a new directory, then move the chromedrive under new folder. -2: pip install selenium or pip3 install selenium +2: python3 -m pip install selenium -3: python settings.py or python3 settings.py +3: python3 settings.py -PS1: this script able to run in python2 or python3. (原始碼可以在python2 或 python3 下執行。) - -PS2: 請先確定你的python 執行環境下已安裝 selenium 或相關的套件,請參考 pip-reg.txt 檔案內容。 - -PS3: 請手動下載新版的 chromedrive, 建議在 source code 下建立一個 webdrive 的目錄,並把 chromedirve 的執行檔放進去。最後透過 python 或 python3 執行 settings.py 就可以有 GUI 的設定界面。) +PS: +* this script only running in python3. (原始碼只可以在 python3 下執行。) +* 請先確定你的python 執行環境下已安裝 selenium及undetected_chromedriver 或相關的套件,請參考 pip-reg.txt 檔案內容。 +* 請手動下載新版的 chromedrive, 建議在 source code 下建立一個 webdrive 的目錄,並把 chromedirve 的執行檔放進去。最後透過 python 或 python3 執行 settings.py 就可以有 GUI 的設定界面。) +* 如果你是使用 macOS 並且執行環境沒有 python3,請使用 https://brew.sh/ 安裝 python3 # Introduce the implement (實作方法) https://stackoverflow.max-everyday.com/2018/03/selenium-chrome-webdriver/ diff --git a/pip-reg.txt b/pip-reg.txt index 9e256ff..6ad57cc 100644 --- a/pip-reg.txt +++ b/pip-reg.txt @@ -1,3 +1,5 @@ certifi chardet -idna \ No newline at end of file +idna +selenium +undetected_chromedriver