Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download all Airdata flights
// 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