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
- Host: GitHub
- URL: https://github.com/zezeez/12306helper
- Owner: zezeez
- License: gpl-3.0
- Created: 2017-12-15T14:01:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-10T03:19:56.000Z (over 6 years ago)
- Last Synced: 2025-04-11T19:07:51.676Z (6 months ago)
- Topics: 12306, c, linux, ticket, train
- Language: C
- Size: 432 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.