Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 404 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 404 Bytes

train-ticket-auto-query

Train Ticket Auto Query Python Scripts

How to use

import logging
from queries import Query
from scenarios import query_and_preserve

# login train-ticket and store the cookies
q = Query(url)
if not q.login():
    logging.fatal('login failed')

# execute scenario on current user
query_and_preserve(q)

# or execute query directly
q.query_high_speed_ticket()