British Airways: Get Cancelled Flight Information

This code grabs all the cancelled flight information from https://www.britishairways.com/rtad/travel/public/en_gb

Get a list of cancelled flights

$(‘tr.cancelled’).each(function() {
console.log($(this).children(‘td[headers=flight-header]’).text(), “-“, $(this).children(‘td[headers=from-header]’).text(), “-“, $(this).children(‘td[headers=to-header]’).text(), “- DEP:”, $(this).children(‘td[headers=dep-time-header]’).text().replace(“26 Feb”, ” 26 Feb”))
});
Angelo Edades

Angelo Edades

I am an IT geek by day and an aviation geek by night. Since I was a child, I have always been fascinated by all aspects of travel especially by air and aircraft flaps (yes, really!). I like to film most of my take-offs and landings and take pictures of food wherever I go.