Merge branch 'master' of https://github.com/max32002/tixcraft_bot
commit
28c00c4ca3
|
@ -18,14 +18,13 @@ http://chromedriver.chromium.org/downloads
|
||||||
|
|
||||||
change the chromedrive in chrome_tixcraft.py, source code:
|
change the chromedrive in chrome_tixcraft.py, source code:
|
||||||
<code>chromedriver_path =Root_Dir+ "webdriver/chromedriver"</code>
|
<code>chromedriver_path =Root_Dir+ "webdriver/chromedriver"</code>
|
||||||
the default path is the script path + "webdriver/chromedriver", my suggestion is make a new directory then move the chromedrive under new folder.
|
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: <code>pip install selenium</code> or <code>pip3 install selenium</code>
|
2: <code>pip install selenium</code> or <code>pip3 install selenium</code>
|
||||||
|
|
||||||
3: <code>python settings.py</code> or <code>python3 settings.py</code>
|
3: <code>python settings.py</code> or <code>python3 settings.py</code>
|
||||||
|
|
||||||
PS: this script able to run in python2 or python3.
|
PS: this script able to run in python2 or python3. (原始碼可以在python2 或 python3 下執行,請先確定你的python 執行環境下已安裝 selenium 或相關的套件,請參考 pip-reg.txt 檔案內容。還需要手動下載新版的 chromedrive 或 firefox drive(geckodriver), 建議在 source code 下建立一個 webdrive 的目錄,並把 chromedirve 的執行檔放進去,或是手動地修改 chrome_tixcraft.py 裡的 chromedriver_path 為你環境下能存取到 chromedrive 的路徑。最後透過 python 或 python3 執行 settings.py 就可以有 GUI 的設定界面。)
|
||||||
PS: 原始碼可以在python2 或 python3 下執行,請先確定你的python 執行環境下已安裝 selenium 或相關的套件,參考 pip-reg.txt。還需要手動下載新版的 chromedrive 或 firefox drive(geckodriver), 建議在 source code 下建立一個 webdrive 的目錄,並把 chromedirve 的執行檔放進去,或是手動地修改 chrome_tixcraft.py 裡的 chromedriver_path 為你環境下能存取到 chromedrive 的路徑。最後透過 python 或 python3 執行 settings.py 就可以有 GUI 的設定界面。
|
|
||||||
|
|
||||||
# Introduce the implement (實作方法)
|
# Introduce the implement (實作方法)
|
||||||
https://stackoverflow.max-everyday.com/2018/03/selenium-chrome-webdriver/
|
https://stackoverflow.max-everyday.com/2018/03/selenium-chrome-webdriver/
|
||||||
|
|
Loading…
Reference in New Issue