latecomers/devloop/parse.py

13 lines
268 B
Python

# -*- encoding: utf-8 -*-
import os
from latecomers.parse import find_table, get_details
with open("./devloop/sample.html") as f:
content = f.read()
flights = find_table(content)
for f in flights:
print(get_details(f, os.environ.get("DEBUG") is not None))