Train Ticket Auto Query Python Scripts
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()