项目作者: WooMaiLabs

项目描述 :
Get airport information from Wikipedia.
高级语言: Python
项目地址: git://github.com/WooMaiLabs/Airport-Codes.git
创建时间: 2021-03-15T16:27:33Z
项目社区:https://github.com/WooMaiLabs/Airport-Codes

开源协议:MIT License

下载


Airport Codes

Get airport information from Wikipedia.

Contains airports with IATA codes only.

Preset Data

If you would like to get preset data, See /preset-data.

Please note it may not be up to date.

Get Data on Your Own

Requirements

  • Python 3

Install

  1. pip install -r requirements.txt

Usage

  1. python3 main.py [-o/--optput <Output File>] [-l/--language <Wikipedia language>] [-v/--variant <Variant>] [--http-proxy <HTTP Proxy URL>]

Example

  1. python3 main.py -o results/chinese.json -l zh -v zh-hk --http-proxy http://user:pass@10.11.22.33:3128

Supported Languages

Please note that data from the non-English Wikipedia may missing some information. (e.g. ICAO Codes)

  • de - German
  • el - Greek
  • en - English (Default)
  • fa - Persian
  • fr - French
  • hi - Hindi
  • hr - Croatian
  • it - Italian
  • ja - Japanese
  • lb - Luxembourgish
  • nl - Flemish
  • pl - Polish
  • zh - Chinese

License

MIT