12306-go

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 15 Imported by: 0

README

Go-12306

Use go-resty to crawl 12306

Author

License

💯 项目说明

  • 项目包管理基于 govendor 构建,项目使用了 go-resty 作为 HTTP 请求框架
  • 打包文件在 pkg 文件夹中(darwin 对应 Mac OS,linux 对应 Linux 系统,win64 对应 Windows 64位系统)

💻 使用说明

Linux / Mac OS 下使用

# Linux / Mac OS
chmod a+x go_12306
# 查询两地车次信息
./go_12306 schedule <起始站名> <到达站名> <当前日期(日期格式: YYYY-MM-DD)>
# 查询某车次时刻表
./go_12306 info <车次号(例如: G1)> <当前日期(日期格式: YYYY-MM-DD)>

Windows 下使用

# Windows 下
# 查询两地车次信息
go_12306.exe schedule <起始站名> <到达站名> <当前日期(日期格式: YYYY-MM-DD)>
# 查询某车次时刻表
go_12306.exe info <车次号(例如: G1)> <当前日期(日期格式: YYYY-MM-DD)>

车次时刻表

两地车次信息

📖 功能说明

  • 目前暂时开发了两个功能:

    • 查询两地车次信息
    • 查询某车次时刻表
  • 后续开发功能点:

    • 加入代理配置
    • 争取完善一些命令行交互以及其他 12306 的功能

📃 License

MIT ©sunhailin-Leo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL