flight-go

command module
v0.0.0-...-02f53cc Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Flight-Go

Use Go-resty to crawl ctrip

Author

License

💯 项目说明

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

💻 使用说明

Linux / Mac OS 下使用

chmod a+x flight_go
# 查询国内机票价格信息
./flight_go schedule <起飞机场> <到达机场> <当前日期(日期格式: YYYY-MM-DD)>
# 查询国际机票价格信息
./flight_go oversea <起飞地> <到达地> <当前日期(日期格式: YYYY-MM-DD)> <舱位等级>
# 查询航班号信息
./flight_go code <航班号> <当前日期(日期格式: YYYYMMDD)>
# 查询机场进出港信息
./flight_go airport <城市名> <进出港字段(例如,进港: arr; 出港: dep)>

Windows 下使用(Windows 控制台下)

# 查询国内机票价格信息
flight_go.exe schedule <起飞机场> <到达机场> <当前日期(日期格式: YYYY-MM-DD)>
# 查询国际机票价格信息
flight_go.exe oversea <起飞地> <到达地> <当前日期(日期格式: YYYY-MM-DD)> <舱位等级>
# 查询航班号信息
flight_go.exe code <航班号> <当前日期(日期格式: YYYYMMDD)>
# 查询机场进出港信息
flight_go.exe airport <城市名> <进出港字段(例如,进港: arr; 出港: dep)>

国内机票价格信息查询 price

国际机票价格信息查询(价格展示待开发) overseaPrice

航班号信息查询 code

机场进出港信息查询 airport

📖 功能说明

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

    • Version v0.1.2
      • 增加了命令行参数提示
      • 优化了源代码的一些结构
      • 国际航班按照舱位等级输出价格信息
    • Version v0.1.1
      • 新增查询国际航班的信息
    • Version v0.1.0
      • 查询两地航班价格信息
      • 查询某个航班信息
      • 查询某个机场的进出港信息
  • 后续开发功能点:

    • 命令行参数提示
    • 考虑加入代理配置
    • 争取完善一些命令行交互以及其他查询功能

📃 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
⌂ 换网址