From ee565ac2af6d312285a1aaf99dfa0fafba223385 Mon Sep 17 00:00:00 2001 From: TaleaX Date: Sat, 24 Sep 2022 14:50:41 +0200 Subject: [PATCH 1/3] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1907c37..5b68923 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ecotraks Slash22 Berlin Project + +test \ No newline at end of file From d9c97daa833c4c4f89f2a80d02e65271ab5b04b7 Mon Sep 17 00:00:00 2001 From: TaleaX Date: Sat, 24 Sep 2022 14:56:32 +0200 Subject: [PATCH 2/3] merge test --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b68923..14f2ed9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # ecotraks Slash22 Berlin Project -test \ No newline at end of file +is this merging +? \ No newline at end of file From 24fd6765b15d256de753c451d1a4dbaa5f419d81 Mon Sep 17 00:00:00 2001 From: TaleaX Date: Sat, 24 Sep 2022 17:39:08 +0200 Subject: [PATCH 3/3] get_plane_data --- get_plane_data.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 get_plane_data.py diff --git a/get_plane_data.py b/get_plane_data.py new file mode 100644 index 0000000..8c91745 --- /dev/null +++ b/get_plane_data.py @@ -0,0 +1,7 @@ +import requests + +req = requests.get('https://api.flightapi.io/onewaytrip/632ddcfccaa6ed253fcf9e6e/BER/CDG/2022-10-03/2/0/1/Economy/EUR') + +data = req.json() +for flight in data['legs']: + print(u"day:[%s]\tduration:[%s]\tairline:[%s]\tstopOverDur[%s]" % (flight['departureDateTime'], flight['duration'], flight['airlineCodes'], flight['stopoverDurationMinutes']) ) \ No newline at end of file