Giter Club home page Giter Club logo

thsr-ticket's Introduction

  • 大部分的程式碼是Fork from BreezeWhite, 整個架構設計得很好, 也是我當初找個有興趣的project來學習的原因
  • 我主要新增Qt Interface, 簡潔流程, 畢竟在cmd line上面, 訂票流程相對還是較久
  • 不使用Selenium爬取, 直接用Http Response的機制, 但是此機制在連假訂票測試時常常有問題
    (高鐵官方會改整個訂票流程for 瞬間大流量), 所以使用時自行承擔風險
  • 尚未完成: 自動辨識驗證碼, 這部份上次爬驗證碼下來準備訓練時, 才抓個十張IP就被鎖了, 還沒時間研究如何爬取驗證碼
    有興趣的可以提交CV辨識這部分的PR, 我會把他整理到Qt Interface中
  • 基本上自動大量搶票這是屬於"違法"行為, 此專案僅供學術研究, 風險自負, 謝謝

高鐵訂票小幫手

!!--純研究用途,請勿用於不當用途--!!

此程式提供另一種輕便的方式訂購高鐵車票,操作介面為命令列介面。相較於使用網頁訂購,本程式因為省卻了渲染網頁介面的時間,只保留最核心的訂購功能,因此能省下大量等待的時間。

執行

本程式由python語言所寫成,因此必須先安裝python才能夠使用。官方下載網址點這裡

首先先將程式碼下載到本機,執行以下指令或是直接按右上方的下載按鈕

git clone https://github.com/BreezeWhite/THSR-Ticket.git

再來進入到資料夾中

cd thsr_ticket

安裝必要的套件

python -m pip install -r requirements.txt

最後執行程式

python thsr_ticket/main.py

注意事項!!!

本程式依舊有許多尚未完成的部分,僅具備基本訂購的功能,若是僅需要訂購成人票、且無特殊需求者,此程式對您而言是加速訂購流程的方便小工具。不符合以上描述者,目前仍建議使用官方網頁進行訂購。

提供功能

  • 選擇啟程、到達站
  • 選擇出發日期、時間
  • 選擇班次
  • 選擇**"成人"**票數
  • 輸入驗證碼
  • 輸入身分證字號
  • 輸入手機號碼
  • 保留此次輸入紀錄,下次可快速選擇此次紀錄

未提供功能

以下功能為未提供輸入的選項,但程式具備相關功能,可依照自身需求、對程式進行修改

  • 選擇車廂種類(標準/商務)
  • 座位喜好(靠窗/走道)
  • 訂位方式(依時間搜尋車次/直接輸入車次號碼)
  • 輸入孩童/愛心/敬老/學生優惠票數
  • 僅顯示早鳥優惠票

未完成功能

  • 重新產生認證碼
  • 語音播放認證碼
  • 重新查詢車次
  • 輸入護照號碼
  • 輸入市話
  • 輸入電子郵件
  • 會員購票

thsr-ticket's People

Contributors

breezewhite avatar ddx000 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.