Add retrieve functionality

This commit is contained in:
sfigato 2022-08-21 08:37:45 +02:00
parent 0986de8cb3
commit fa885eac66
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
3 changed files with 32 additions and 0 deletions

12
devloop/parse_retrieve.py Normal file
View File

@ -0,0 +1,12 @@
# -*- 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))

6
devloop/retrieve.py Normal file
View File

@ -0,0 +1,6 @@
# -*- encoding: utf-8 -*-
from latecomers.retrieve import retrieve
body = retrieve()
print(body)

14
latecomers/retrieve.py Normal file

File diff suppressed because one or more lines are too long