latecomers/devloop/parse.py

13 lines
268 B
Python
Raw Permalink Normal View History

2022-08-18 18:49:47 +02:00
# -*- encoding: utf-8 -*-
import os
from latecomers.parse import find_table, get_details
2022-08-24 12:43:32 +02:00
with open("./devloop/sample.html") as f:
2022-08-18 18:49:47 +02:00
content = f.read()
flights = find_table(content)
for f in flights:
print(get_details(f, os.environ.get("DEBUG") is not None))