-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,60 @@ | ||
# fk12306 | ||
|
||
12306查票助手,一键查询沿途所有站点,先上车后补票,暂不支持抢票 | ||
|
||
`fk`的意思是`Find and checK`,也就是`F*** *** ****K`,缩写为`fk` | ||
|
||
仅支持Python3,推荐Python3.5+ | ||
|
||
## 安装 | ||
|
||
pip安装(推荐): | ||
```bash | ||
pip3 install fk12306 | ||
``` | ||
|
||
手动安装: | ||
```bash | ||
git clone https://github.com/0xHJK/fk12306 | ||
cd fk12306 && make install | ||
``` | ||
|
||
不安装直接运行: | ||
```bash | ||
git clone https://github.com/0xHJK/fk12306 | ||
cd fk12306 | ||
python3 fk12306.py | ||
``` | ||
|
||
## 使用方法 | ||
|
||
``` | ||
$ fk12306 --help | ||
Usage: fk12306 [OPTIONS] | ||
12306查票助手 Example:fk12306 -f 上海 -t 北京 -d "2019-03-01" -n "G16 G18 G22" -r | ||
Options: | ||
--version Show the version and exit. | ||
-f, --from-station TEXT 出发地 | ||
-t, --to-station TEXT 目的地 | ||
-d, --date TEXT 日期 | ||
-s, --seats TEXT 限制座位 | ||
-n, --train-no TEXT 限制车次 | ||
-z, --zmode 高级模式 | ||
-zz, --zzmode 终极模式 | ||
-r, --remaining 只看有票 | ||
--gcd 只看高铁动车城际 | ||
--ktz 只看普快特快直达等 | ||
--proxies-file TEXT 代理列表文件 | ||
--stations-file TEXT 站点信息文件 | ||
--cdn-file TEXT CDN文件 | ||
--help Show this message and exit. | ||
``` | ||
|
||
## 使用示例 | ||
|
||
![](https://github.com/0xHJK/fk12306/raw/master/docs/preview.png) | ||
|
||
## LICENSE | ||
[MIT License](https://github.com/0xHJK/fk12306/blob/master/LICENSE) |