fk12306
12306查票助手,一键查询沿途所有站点,先上车后补票,暂不支持抢票
fk的意思是Find and checK,也就是F*** *** ****K,缩写为fk
仅支持Python3,推荐Python3.5+
安装
pip安装(推荐):
pip3 install fk12306
手动安装:
git clone https://github.com/0xHJK/fk12306
cd fk12306 && make install
不安装直接运行:
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.
使用示例
LICENSE
Metadata
Release files for fk12306 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fk12306-0.1.1.tar.gz | 71.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fk12306-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 144.8 kB
Release files / fk12306-0.1.1.tar.gz
| Download URL | fk12306-0.1.1.tar.gz |
|---|---|
| Size | 71.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
378112b03a77cf807045b38198a80e184af148d14ca36f43bd88ca8f965de7ce
|
|
BLAKE2b-256 checksum How to use checksums |
71a13640023accad15979b28d62ea8f48fdc987406680ac84aef127537810f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0
|
Release files / fk12306-0.1.1-py3-none-any.whl
| Download URL | fk12306-0.1.1-py3-none-any.whl |
|---|---|
| Size | 72.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efcdff50ccc54c7eb3f3ddbcb26cfa80bd0c8a4b2a113223b7f2eda1601a6592
|
|
BLAKE2b-256 checksum How to use checksums |
254c4b70802d68b65ef5c05c3be416df3d8bbcf1820eb820c3efdad457840a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0
|