项目作者: mnemocron

项目描述 :
Website Scraper for LSZB Airport arrivals/departures Table
高级语言: Python
项目地址: git://github.com/mnemocron/LSZBMovements.git
创建时间: 2020-01-09T09:13:02Z
项目社区:https://github.com/mnemocron/LSZBMovements

开源协议:Apache License 2.0

下载


LSZBMovements

Website Scraper for LSZB Airport arrivals/departures Table.
Serves the arrivals/departures Table as a JSON API (files).


forthebadge made-with-python

volkswagen status

This script downloads the html table from the LSZB website: bernairport.ch and parses it into two timetable.json files.

Usage

  1. python3 get-lszb.py --help
  2. Usage: get-lszb
  3. Options:
  4. -h, --help show this help message and exit
  5. -o OUTDIR, --outdir=OUTDIR
  6. [optional] output directory
  7. -s, --single-file [optional] merge arrival/departures into single file

Use the -o parameter to specify the output directory.

  1. python3 get-lszb.py -o belp/

Outputs: belp/arrivals.timetable.json and belp/departures.timetable.json

Example Output

  1. {
  2. "data": [
  3. {
  4. "flightNo": "NJE794R",
  5. "airport": "Ljubljana",
  6. "via": "",
  7. "scheduledTime": "12:30",
  8. "estimatedTime": "",
  9. "gate": "",
  10. "status": "",
  11. "privateflight": "Private Flight",
  12. "direction" : "arrival"
  13. }
  14. ]
  15. }

LICENSE

Apache License 2.0

(c) 2020 Simon Burkhardt