def satellite_get_tle(norad_id): """ Gets the most recent TLE of the satellite. """ credentials = {'identity': SPACETRACK_USERNAME, 'password': SPACETRACK_PASSWORD} sresponse = spacetrack.request_sequence(credentials, norad_id) tle = {'tle0': sresponse[0]['TLE_LINE0'], 'tle1': sresponse[0]['TLE_LINE1'], 'tle2': sresponse[0]['TLE_LINE2']} return tle
def satellite_get_full_tle(norad_id): """ Gets the most recent TLE of the satellite. """ credentials = {'identity': SPACETRACK_USERNAME, 'password': SPACETRACK_PASSWORD} sresponse = spacetrack.request_sequence(credentials, norad_id) return sresponse[0]