Created
October 23, 2020 07:43
-
-
Save daz/0faa37a421570981f4327167a34d3759 to your computer and use it in GitHub Desktop.
Download all Airdata flights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get a list of all Airdata flight download URLs in KML, GPX, CSV, original format. | |
// Go to https://app.airdata.com/flight/last and paste this into the console | |
let urlList = $("#item_list_dt") | |
.DataTable() | |
.tables() | |
.context[0].aoData.map(a => { | |
return a._aData.h; | |
}) | |
.slice(1, -1) | |
.map(h => { | |
return { | |
kml: `https://app.airdata.com/kml?flight=${h}&default_color=ff00ffff&default_width=2&color_width=3`, | |
gpx: `https://app.airdata.com/gpx?flight=${h}&default_color=ff00ffff&default_width=2&color_width=3`, | |
csv: `https://app.airdata.com/csv?flight=${h}`, | |
original: `https://app.airdata.com/original?flight=${h}` | |
}; | |
}); | |
// Copy to clipboard | |
copy( | |
urlList | |
.map(u => { | |
return u.original; | |
}) | |
.join("\n") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment