    $('table tr').each(function (key) {
      if (key !== 0) {
        let flight = {}
        if (data.type === 'departures') {
          flight = {
            date: $(this).children('td').slice(0).html(),
            flightNumber: $(this).children('td').slice(1).html(),
            airline: $(this).children('td').slice(2).html(),
            to: $(this).children('td').slice(3).html(),
            plannedArrival: $(this).children('td').slice(4).html(),
            realArrival: $(this).children('td').slice(5).html(),
            status: $(this).children('td').slice(6).html(),
          }
        } else {
          flight = {
            date: $(this).children('td').slice(0).html(),
            flightNumber: $(this).children('td').slice(1).html(),
            airline: $(this).children('td').slice(2).html(),
            from: $(this).children('td').slice(3).html(),
            plannedArrival: $(this).children('td').slice(4).html(),
            realArrival: $(this).children('td').slice(5).html(),
            status: $(this).children('td').slice(6).html(),
          }
        }

        obj.results.push(flight)
      }
    })