latecomers/devloop/parse_retrieve.py

13 lines
260 B
Python
Raw Normal View History

2022-08-21 08:37:45 +02:00
# -*- encoding: utf-8 -*-
import os
from latecomers.retrieve import retrieve
from latecomers.parse import find_table, get_details
body = retrieve()
flights = find_table(body)
for f in flights:
print(get_details(f, os.environ.get("DEBUG") is not None))