Skip to content

zezeez/12306helper

Repository files navigation

12306ticket

  This application is develop for linux platform and it is intend to run with gtk3, it also depend on libcurl which is a client url library whiten by C.Please check your platform dependencies before compile this code or run this application.Remeber modify tickethelper.conf to your own setting.

For installing gtk3, on Fedora:
sudo dnf install gtk3 gtk3-devel
On Debian or Ubuntu:
sudo apt-get install libgtk-3-dev
On Arch Linux:
sudo pacman -Sy gtk3
On OpenSUSE:
sudo zypper install gtk3 gtk3-dev
On Linux Mint:
gem install gtk3 gtk3-dev

How to compile and run?

Copy this repository to local

git clone https://github.com/liujianjia/12306ticket.git

or download zip package and extract it

Enter project directory

cd 12306helper

Build project

make

If everything is ok, there is an executable file which name is tickethelper generated

Use your favorite text editor modify tickethelper.conf to your own setting, such as

vim tickethelper.conf

Then start application, good luck!

./tickethelper

Available command line options:
  -c, --config
    specify configuration file.
-h, --help print this message and exit.
-q, --queit queit mode, don't output each train information.
-Q, --query-only query only mode, only query ticket information and disable auto order ticket function.
-v, --verbose enable verbose mode, output more detail information about connection and debug information.
-V, --version print application version and exit.

About

a tool can auto order ticket at kyfw.12306.cn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published