latecomers/devloop/parse_retrieve.py

13 lines
260 B
Python

# -*- 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))