Git Product home page Git Product logo

lszhmovements's Introduction

LSZHMovements

web API for ZRH/LSZH Zürich Airport Airport arrivals/departures Table


forthebadge made-with-python

volkswagen status

This script downloads the json table from the new LSZH website: flughafen-zuerich.ch and parses it into two timetable.json files.

Usage

python3 get-lszh.py --help
Usage: get-lszh

Options:
  -h, --help            show this help message and exit
  -o OUTDIR, --outdir=OUTDIR
                        [optional] output directory
  -s, --single-file     [optional] save to single file
  -p, --spotter-only    [optional] only save the spotter relevant flights

Use the -o parameter to specify the output directory.

python3 get-lszh.py -o lszh/

Outputs: lszh/arrivals.timetable.json and lszh/departures.timetable.json or lszh/arrivals.timetable.spotter.json and lszh/departures.timetable.spotter.json if the '--spotter-only' option is enabled.

Example Output

{
  "data": [
    {
      "id": 776369,
      "flightType": "A",
      "SDT": "2020-06-23T00:00:00Z",
      "STA": "2020-06-23T13:50:00Z",
      "ETA": "2020-06-23T13:01:00Z",
      "TER": "2",
      "FLC": "LX",
      "airlineLogo": "https://www.flughafen-zuerich.ch/-/jssmedia/airport/portal/logos/airline/swiss.svg?vs=1",
      "FLN": "189",
      "REG": "HBJNH",
      "statusCode": 10,
      "statusTextDe": "Fracht",
      "statusTextEn": "Cargo",
      "airportName": "International Airport",
      "cityDe": "Shanghai",
      "cityEn": "Shanghai",
      "search": "LX189 LX 189 SWISS PVG  International Airport Shanghai Shanghai       ",
      "POR": "PVG",
      "ICT": "B77W",
      "TYP": "777",
      "TYS": "77W",
      "model": "777-300",
      "manufacturerName": "Boeing",
      "isCommercial": false,
      "airline": "SWISS"
    }
  ]
}

Statement

"Wir freuen uns, dass Sie unsere neue Webseite bereits ausprobiert haben und danken Ihnen für Ihre Anfrage für einen API-Zugang auf unsere Homepage.

Bezüglich der detaillierten Informationen über den Flugzeugtyp und Registration der Flugzeuge möchten wir Ihnen mitteilen, dass wir diese Funktion für unsere Aviatikfans verbessert und erweitert haben. So werden beispielsweise neu auch Frachtflüge angezeigt. Sie können sich ein Profil erstellen und erhalten detaillierte, geräteübergreifende Informationen oder Sie stellen sich den Spottermodus zeitlich begrenzt ein. Diese sowie weiterführende Informationen für Spotter finden Sie unter dem folgenden Link: www.flughafen-zuerich.ch/de/passagiere/erleben/erlebnisse/spotter-informationen.

Wir sind überzeugt, dass wir so für die Aviatikfans eine gute Möglichkeit gefunden haben, um Informationen abrufen zu können und hoffen, dass Ihnen die neue Webseite künftig von besserem Nutzen sein wird."


LICENSE

Apache License 2.0

(c) 2020 Simon Burkhardt

lszhmovements's People

Contributors

dxmekch avatar mnemocron avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dxmekch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.