An open API service indexing awesome lists of open source software.

https://github.com/zezeez/12306helper

a tool can auto order ticket at kyfw.12306.cn
https://github.com/zezeez/12306helper

12306 c linux ticket train

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.