Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.88 KB

README_EN.md

File metadata and controls

51 lines (40 loc) · 1.88 KB

12306Python

hack12306.py is a automatic 12306.cn ticket booking program by Python 3.x . This program uses splinter (python test framework for web applications) to operate the website automatically.

Description

    |-- README.md:Description
    |-- config.ini:Config file
    |-- hack12306.py:Main program	
    |-- city_code.txt:city and code mapping file
    |-- resoures:resources
            |-- images:images
                    |-- 流程图.jpg:flow chart

Design

image

Features

    hack12306.py is a automatic 12306.cn ticket booking program by Python 3.x. While you run it, what you need to do is wait for the browser page to jump out, enter the verification code, click the login button, then go have a cup of tea or coffee, the ticket you want will be in your pocket. Easy and hanppy!

Supported:
    1、support config departure city, destination city, start date
    2、support config train types(D, G etc.)
    3、support config departure time
    4、need to enter the verification code manually
    5、support config train order
    		(0 means the first matches from top to bottom; 2 means the second train on the list)
    6、support auto search and confirm	
    7、support config file configurable
    8、support config seat type
   
Not supported:
    1、Email

Usage

1、The one who wants to buy tikect should to be added to the login account

    passenger info should be added in advance for the program to use

2、config(Config.ini)