{"repo":"SeanChangX/THSR-Sniper","free":true,"listed":false,"github":"https://github.com/SeanChangX/THSR-Sniper","clone":"git clone https://github.com/SeanChangX/THSR-Sniper.git","description":"台灣高鐵自動化訂票工具 Automated Taiwan High Speed Rail (THSR) ticket booking tool with OCR captcha recognition, scheduler & API service.","language":"Python","stars":34,"topics":["automation","docker","fastapi","ocr","python","thsr","ticket-booking"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"English 繁體中文 THSR-Sniper Screenshots Quick Start Using Docker (Recommended) Initial Configuration Before starting the services for the first time, you need to set up the environment configuration: 1. Generate Security Keys Run the key generator script to generate secure JWT and encryption keys: This will create a .env file with: - SECRET KEY - JWT authentication secret key (randomly generated) - ENCRYPTION KEY - Data encryption key (randomly generated) 2. Add MySQL Configuration Append MySQL configuration to .env file: Or manually edit .env and add these lines: Default MySQL settings will be used if not specified. For production environments, it is recommended to change the passwords. 3. Frontend Configuration (Optional) Frontend uses default API endpoints that work with standard Docker setup: 4. Build Services (Optional) Environment Setup Production Environment For production use with optimized builds: Development Environment For frontend development with hot reload: Three Operation Modes 1. Immediate Booking (CLI Mode) Direct booking with immediate execution: 2. Scheduled Booking (API + Scheduler) Automated periodic booking attempts with task management: 3. API Server Mode RESTful API for integration and web interfaces: Command Line Options Personal Information - --id, -i - Personal ID number (required for booking) - --member, -m - Use THSR membership (y/n, true/false, 1/0) Journey Details - --from, -f - Departure station ID (use --stations to see list) - --to, -t - Arrival","default_branch":null,"files":null,"tree":[],"storefront":"/r/SeanChangX","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SeanChangX/THSR-Sniper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}