Code Monkey home page Code Monkey logo

flight-reservation-emails's Introduction

Flight & Hotel reservation email parser

Searches emails for flight tickets and hotel reservations. Builds a brief summary view of all your reservations over time.

Usage

  1. Adding emails to the email database

    People store emails in various ways. Here we support the notmuch database (https://notmuchmail.org/) It is trivial to include maildir emails into notmuch with "notmuch new".

    For email programs with mailbox, mb2md (http://batleth.sapienti-sat.org/projects/mb2md/) can be run to convert to maildir, followed by "notmuch new"

    For Thunderbird, the thunderbird-notmuch-import.py script is provided, which finds the relevant folders automatically.

  2. Building the report

    run with some email search keywords:

    $ python summary.py 'schema.org/FlightReservation OR ticket OR flight OR flug OR viaje OR booking OR confirmation OR confirmacion'

    It will give you some idea of what it finds, for example:

    2015-11-28 Flight HOUSTON, TX --> WASHINGTON, DC
    
    Departing 2015-11-28 19:10 
    from HOUSTON, TX  
    arriving 2015-11-28 23:05
    To   WASHINGTON, DC  
    Flight number UA1955
  3. View report

    For an example report see "summary.html"!

Features implemented

  • Summary of all flights, with crucial information (when, from-to, ...)
  • Including PDF eticket files, extracted from emails.
  • Parallel parsing for speed-up.
  • Parsing of the flight reservations schema following https://developers.google.com/gmail/markup/reference/flight-reservation
  • Some heuristic parsing of html emails in English, Spanish and German. If you have emails that can serve as additional test cases, please submit them. Contributions to the parsing are welcome!

To Do

flight-reservation-emails's People

Contributors

johannesbuchner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flight-reservation-emails's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.