17 lines
350 B
Python
17 lines
350 B
Python
# -*- encoding: utf-8 -*-
|
|
import os
|
|
|
|
from latecomers.parse import find_table, get_details
|
|
from latecomers.serializer import to_excel
|
|
|
|
with open("./devloop/sample.html") as f:
|
|
content = f.read()
|
|
|
|
flights = find_table(content)
|
|
data = []
|
|
|
|
for f in flights:
|
|
data.append(get_details(f, os.environ.get("DEBUG") is not None))
|
|
|
|
print(to_excel(data))
|