Go to file
Max 652b93192b
fix typo.
2023-12-11 16:57:22 +08:00
LICENSE add LICENSE 2019-10-26 07:03:30 +08:00
NonBrowser.py 2023-10-16, change play sound title to play sound while ordering 2023-10-30 08:15:20 +08:00
README.md Update README.md 2023-11-21 09:53:46 +08:00
chrome_tixcraft.py fix bug for hkticketing 2023-12-11 09:57:15 +08:00
config_launcher.json rename config manager to config launcher 2023-02-23 23:22:55 +08:00
config_launcher.py 2023-12-02, fix for ticketplus 2023-12-09 15:10:23 +08:00
demo_video.md 移掉部份不重要的影片 2023-11-09 11:04:26 +08:00
ding-dong.wav 2022-11-18, add adblock back, but default is disable, due to some computer can't automaticaly install extenstion by script. 2022-11-18 02:17:19 +08:00
ding.wav 2022-11-18, add adblock back, but default is disable, due to some computer can't automaticaly install extenstion by script. 2022-11-18 02:17:19 +08:00
icon_chrome_4.gif add text server for answer dictionary 2023-06-15 23:45:50 +08:00
icon_copy_2.gif 2022-11-18, add adblock back, but default is disable, due to some computer can't automaticaly install extenstion by script. 2022-11-18 02:17:19 +08:00
icon_play_1.gif 2022-11-18, add adblock back, but default is disable, due to some computer can't automaticaly install extenstion by script. 2022-11-18 02:17:19 +08:00
icon_query_5.gif search keyword by browser icon 2023-06-19 17:24:34 +08:00
maxbot_logo2_single.ppm 2022-11-14, change png file format to ppm, remove pillow package. 2022-11-14 12:07:13 +08:00
pip-req.txt 2023-12-02, fix for ticketplus 2023-12-09 15:10:23 +08:00
settings.json 2023-11-19, add headless mode, fix macOS import Pillow fail. 2023-11-25 09:11:43 +08:00
settings.py fix typo. 2023-12-11 16:57:22 +08:00
text_server.py 2023-12-02, fix for ticketplus 2023-12-09 15:10:23 +08:00

README.md

Max搶票機器人

MaxBot是一個免費、開放原始碼的搶票機器人。祝您搶票成功。

MaxBot is a FREE and open source bot program. Good luck getting your expected ticket.

Download (搶票程式下載)

https://github.com/max32002/tixcraft_bot/releases

附註: 如果你是 macOS, 且安裝的 python 版本是 3.12.x 版, 會無法執行, 請移除後並降低版本為 python 3.10.x 版, 原因是使用的第三方套件undetected-chromedriver 暫時無法相容於 python 3.12.x 版.

Demo (示範影片)

https://github.com/max32002/tixcraft_bot/blob/master/demo_video.md

How to use (如何使用)

如果你想在 interpark 上搶票, 你需要去下載另一個專門為 interpark 量身定制的 Max Interpark Bot:

https://max-everyday.com/2023/08/interpark-bot/

How to execute source code (透過原始碼的執行方法)

1: python3 -m pip install -r pip-req.txt

2: python3 settings.py

PS:

  • 請先確定你的python 執行環境下已安裝 selenium 及相關的套件,請參考 pip-req.txt 檔案內容。
  • 透過 python3 執行 settings.py 就可以有 GUI 的設定界面。
  • 如果你是使用 macOS 並且執行環境沒有 python3請 python 官方網站(https://www.python.org/downloads/)來安裝 python3.
  • 如果你是使用 Firefox, ChromeDriver 的元件是叫 geckodriver下載點在https://github.com/mozilla/geckodriver/releases ,與 ChromeDriver 的處理方式是一樣,如果是 mac 電腦要在元件按右鍵開啟做一次授權的動作mac 有2個版本-macos.tar.gz 與 -macos-aarch64.tar.gz ,如果是 intel CPU 的版本,請服用前面沒有 aarch64 的版本。

PS搶票程式可以多開chrome瀏覽器如果你電腦效能高。

PS「掛機模式」的選項指人不需要在電腦前驗證碼會猜到對為止。

參看看文章: 如何用虛擬主機搶拓元的門票

https://max-everyday.com/2023/11/buy-ticket-by-vm/

雖然這篇文章是以虛擬主機來示範,但是在 Windows / macOS / Linux 平台裡的 python 操作方式是類似的,幾乎相同。

Introduce the implement (實作方法)

https://stackoverflow.max-everyday.com/2018/03/selenium-chrome-webdriver/

Execute suggestion (搶票建議)

please run this source code with high performance hardware computer and high speed + stable network.

門票的「限量」是很殘酷的,建議不要用破舊的電腦或連線不穩的手機網路來搶票,因為只要比別人慢個 0.1 秒,票可能就沒了。為了要搶到限量的票真心建議去一下網咖或找一個網路連線穩定且快的地方並使用硬體不差的電腦來搶票。

TODO about cpatcha (關於驗證碼)

目前自動輸入驗證碼用的元件是:

https://github.com/sml2h3/ddddocr

附註:

想自動輸入驗證碼可以參考看看實作基於CNN的台鐵訂票驗證碼辨識以及透過模仿及資料增強的訓練集產生器 (Simple captcha solver based on CNN and a training set generator by imitating the style of captcha and data augmentation)

https://github.com/JasonLiTW/simple-railway-captcha-solver

搶票常見問題整理

詳全文:https://max-everyday.com/2023/02/common-problem-when-you-buy-ticket/

整理大家在搶票時常遇到的問題:

  • 使用搶票程式有違法嗎?
  • 沒講清楚成功後的報酬
  • 買到太多票
  • 如何處理多的票?
  • 使用搶票程式會讓自己的帳號被鎖住嗎?
  • 拓元的搶票,要多少的網路頻寬才夠?
  • 使用VPN/代理伺服器(Proxy)來搶票會有用嗎?
  • Firefox和chrome搶票上有差距嗎我看大家基本上都用chrome 很少用Firefox.
  • 為什麼要設計搶票的機制?
  • 為什麼網頁會有驗證碼?
  • 你的硬體設備該不該升級?
  • 想組一台新的電腦,是不是可以給我一些建議呢?

Supporting the Project (贊助Max)

如果這個項目對您有幫助,不妨請作者我喝杯咖啡

目前支援的贊助方式:

  • 台灣的ATM匯款: 中國信託 (代碼822) 帳號071512949756
  • 7-11 ATM的無卡存款
  • 街口支付: 901643378
  • 悠遊付
  • PayPal weng.32002@gmail.com
  • 支付寶: 13717075071

詳細的圖文贊助教學如下: https://max-everyday.com/about/#donate