latecomers/devloop/parse.py
2022-08-24 12:45:19 +02:00

13 lines
260 B
Python

# -*- encoding: utf-8 -*-
import os
from latecomers.parse import find_table, get_details
with open("./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))