Adjunto mi codigo para que lo puedan mejorar o darme un feedback, Animo todo se puede
salida = vuelo.find_element_by_xpath('.//div[@class="departure"]/time').get_attribute('datetime')
salida
llegada = vuelo.find_element_by_xpath('.//div[@class="arrival"]/time').get_attribute('datetime')
llegada
duracion = vuelo.find_element_by_xpath('.//span[@class="duration"]/time').get_attribute('datetime')
formatear = duracion.replace('PT', '')
formatear
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.