Simple webgui to update and present travel plans. Webgui thanks to the streamlit
package. Features include:
- Upload multiple plane tickets from Google's Travel page extract information using
pytesseract
, and present it - Uploaded tickets will be stored in images folder as
ticket_1.png
etc - Manually input where you are and where you plan to be, and when
- Store above information in an sqlite db, so OCR and extraction is not done on each page reload
- Present tracking info: https://www.flightstats.com/v2/flight-tracker/AA/5584
First edit line 43
of whereis.py
to change the default name and nickname. Then:
pip install -r requirements.txt # install prereqs
python db_reset.py # initiate sqlite database
streamlit run whereis.py # start the main webpage
streamlit run settings.py # start the settings page
- Upload an Image: just upload it, nothing special required
- Upload Tickets
- Save a screenshot of your plane ticket, one at a time, with the confirmation code included
- NOTE: OCR assumes that tickets were saves alphabetically, so image "a.jpg" will appear as Flight 1 and "b.jpg" as Flight 2.
- NOTE: Wait until the running man in the top right stops, then close the tab. Tab must be closed and not refreshed or the picture will be processed again.
- Update Location:
NYC, NY
- Update Plans: location as
Los Angeles; Miami, FL
with date in same orderMarch 2; June 2, 2022
then click submit.