Giter Club home page Giter Club logo

tixcraft_bot's Introduction

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

如果你是要用原始碼執行MaxBot, 在透過git clone 或在github按下載原始碼的 zip檔,你的python 版本可以使用3.7 / 3.8 / 3.9 / 3.10 這4個版號。

如果有辦法的話,建議使用原始碼來執行MaxBot,執行上的效率與相容性的問題會較少,使用方法是先取得原始碼後,開啟 Terminal 視窗來下指令,應該是4行指令就可以了。

請參看看文章: 如何用虛擬主機搶拓元的門票,這篇文章是以虛擬主機來示範,在 Windows / macOS / Linux 平台裡的 python 操作方式幾乎相同。

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

Demo

(示範影片)

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

How to Use

(如何使用教學)

How to Execute Source Code

(透過原始碼的執行方法)

透過原始碼執行MaxBot教學影片: https://youtu.be/HpVG91j0lbI

Step 1: 取得source code:

git clone https://github.com/max32002/tixcraft_bot.git

Step 2: 進入 clone 的資料夾: tixcraft_bot:

cd tixcraft_bot

Step 3: 安裝第三方套件:

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

Step 4: 執行設定界面主桯式:

python3 settings.py

如果遇到MaxBot 改版, 請重新操作上面4個步驟一次, 即可取得新的版本.

如果MaxBot 沒改版, 第二次要再執行的話, 使用 Step 2 + Step 4, 這2行指令, 就可以執行 MaxBot.

如果你是 ARM CPU 應該會在 Step 3 就顯示錯誤訊息, 解法: max32002#82 (comment)

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:「掛機模式」的選項,指人不需要在電腦前,驗證碼會猜到對為止。

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

附註:

  • macOS 新的電腦 arm 系列, 暫時沒有提供自動輸入驗證碼功能, 使用上的限制和 ddddocr 相同. 暫時的解法是透過Rosetta來模擬 Intel CPU 環境. 請參考: max32002#82
  • macOS 舊款intel CPU 的電腦裡的 python 版本要降到低於等於 3.9版 或 3.10版, 例如: https://www.python.org/downloads/release/python-31011/
  • 猜測驗證碼時比較容易出錯的是字英 f 和 t,還有 q 和 g, v 和 u 還有 w.

想自動輸入驗證碼,可以參考看看:實作基於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

Common Problems

(搶票常見問題整理)

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

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

  • 使用搶票程式有違法嗎?
  • 沒講清楚成功後的報酬
  • 買到太多票
  • 如何處理多的票?
  • 使用搶票程式會讓自己的帳號被鎖住嗎?
  • 如何恢復拓元的「購票權限」?
  • 網頁刷新速度有推薦幾秒刷新一次嗎?
  • 拓元的搶票,要多少的網路頻寬才夠?
  • 使用VPN/代理伺服器(Proxy)來搶票會有用嗎?
  • 同一個IP短時間重試被系統視為惡意程式而封鎖怎麼辦?
  • Firefox和chrome搶票上有差距嗎?我看大家基本上都用chrome 很少用Firefox.
  • 為什麼要設計搶票的機制?
  • 為什麼網頁會有驗證碼?
  • 你的硬體設備該不該升級?
  • 想組一台新的電腦,是不是可以給我一些建議呢?

Extension Privacy

(MaxBot Plus擴充功能隱私權政策)

產品如何收集、使用及分享使用者資料

  • 擴充取得會取得特定網頁內容, 並且自動輸入張數。
  • 擴充功能會移除特定網頁內容裡已售完的網頁區塊。
  • 擴充功能會取得特定網址資訊, 並置換為下一個新的網址。
  • 擴充取得會取得特定網頁內容, 判斷為需要重新整理時, 自動刷新頁面。

使用者資料的所有分享對象。

  • 擴充功能沒有分享使用者資料。

擴充功能主要功能:

  • 特定的訂票網頁內容, 並且自動輸入張數。
  • 移除特定的訂票網頁內容裡已售完的網頁區塊。
  • 特定的訂票網址, 自動置換為下一步的新網址。
  • 當訂票網頁內容已經無票或沒有符合的關鍵字時, 自動刷新網頁。
  • 特定網頁支援驗證碼功能, 需要同時開啟 MaxBot 主程式。

Supporting the Project

(贊助Max)

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

目前支援的贊助方式:

  • 台灣的ATM匯款: 中國信託 (代碼:822) 帳號:071512949756
  • 7-11 ATM的無卡存款
  • 街口支付: 901643378
  • 悠遊付
  • PayPal: [email protected]
  • 支付寶: 13717075071

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

tixcraft_bot's People

Contributors

max32002 avatar hahamic avatar lovefirst02 avatar chuanxd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.