GithubHelp home page GithubHelp logo

julianpscheid / ua-award-tracker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 148 KB

Python application that scans the UA website for award availability and sends out notification emails based on results.

License: Apache License 2.0

ua-award-tracker's Introduction

UA-Award-Tracker

Python application that scans the UA website for award availability and sends out notification emails based on results.

I should note that I am a Python newbie so this application does probably not follow any development best practices... but it works :)

Packages used:

Mechanize

The application uses Mechanize to create a session on United.com and submit the forms.

BeautifulSoup

Used to parse the results page.

Parse

I use Parse.com to store a database of all the searches that I'm running. This allows me to easily add and remove searches without needing to edit the application. The table I use is set up the following way:

{ "results": [
	{
        "alertOnBusiness": true,
        "alertOnEconomy": false,
        "alertOnFirst": true,
        "createdAt": "2014-05-18T16:47:33.767Z",
        "departureDate": {
            "__type": "Date",
            "iso": "2014-12-15T16:47:00.000Z"
        },
        "departureLocation": "sfo",
        "destinationLocation": "fra",
        "numberAdults": 2,
        "objectId": "35XWHOC9xo",
        "updatedAt": "2014-05-18T16:47:59.319Z"
    }
] }

The API key is XXX'ed out, so feel free to hardcode your search for now if you don't want to set up a Parse account.

Mailgun

Mailgun is used to send results notifications.

Hosting

I run this application on Heroku within a free account. I use the Heroku scheduler to run the search hourly, although you'll see that I limit it to actually hitting United.com only 5 times a day.

ua-award-tracker's People

Contributors

julianpscheid avatar

Stargazers

Seth Theriault avatar

Watchers

 avatar

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.