Skip to content

This is a ticket-grabbing auxiliary program for the Tuoyuan system

Notifications You must be signed in to change notification settings

AutoClickkk/TixCraftAutoSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TixCraftAutoSystem

配置 .env

# Google SMTP (如果需要完成後通知的話)
SMTP_LOGIN_USER=email
SMTP_LOGIN_PASSWORD=password

配置 config.json(說明請參考 docs/config.md)

{
    "chrome_driver_path": "./assets/chromedriver/win64-130.0.6723.70.exe",
    "sleep": {
        "max_seconds": 0.5,
        "min_seconds": 0.2
    },
    "game_id": "24_straykids",
    "number_of_ticket" : 2,

    "open_for_purchase_datetime": "2024/11/01-13:00:00",
    "show_time_text_contains": "2024/11/03 (日) 18:00",
    "area_price_text_contains": "4800",
    "notification_emails": ["xxx@gmail.com"]
}

安裝依賴

# 創建虛擬環境(python version 3.12.5)
python -m venv .venv
# 進入 venv
.\.venv\Scripts\activate

# 安裝依賴
pip install --upgrade pip
pip install -r requirements.txt

運行

python main.py

freeze

pip freeze > requirements.txt

test

pip install pytest pytest-cov
pytest --cov=src --cov-report=term-missing --cov-report=html

About

This is a ticket-grabbing auxiliary program for the Tuoyuan system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages