Python use to query train tickets demo
-
run parse_station.py like this
$ python3 parse_station.py > stations.py
-
add a dictionary name to stations.py
It is a dictionary for the city name conversation.
-
run like this
# tickets.py <from_station> <to_station> <time> $ python ./tickets.py beijing shanghai 2016-10-28