latecomers/devloop/parse_retrieve.py

16 lines
395 B
Python

# -*- encoding: utf-8 -*-
import os
from latecomers.retrieve import retrieve_from_inst, retrieve_from_fr24
from latecomers.parse import find_table, get_details, parse_fr24
body = retrieve_from_inst()
flights = find_table(body)
aux_data = parse_fr24(retrieve_from_fr24())
breakpoint()
for f in flights:
print(get_details(f, aux_data=aux_data, debug=os.environ.get("DEBUG") is not None))