Coder Social home page Coder Social logo

swa-price-drop's People

Contributors

barrettc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

swa-price-drop's Issues

Allow option to watch based on points instead of dollars?

Thanks for this great script! I normally book with points -- so it would be great if you could add a switch to do the same comparison, but using POINTS instead of DOLLARS for the "fareType"! I don't think it would be a difficult addition (and you could use the "outboundPrice" field in the configuration just as it is).

Thanks!

HTML being returned for international flights is different

Received an email with the following parameters:

flights:
  # round trip
  - outboundFlightNumber: 514
    returnFlightNumber: 515
    originAirport: DEN
    destinationAirport: PVR
    outboundDate: 07/18/2017
    returnDate: 07/28/2017
    adultPassengerCount: 1
    outboundPrice: 276
    returnPrice: 324

yields:

2017-03-31T22:44:03.112Z - info: Checking southwest.com for prices with parameters:
originAirport: DEN
destinationAirport: PVR
outboundDateString: 07/18/2017
returnDateString: 07/28/2017
adultPassengerCount: 1
2017-03-31T22:44:05.495Z - debug: Lowest outbound price for flight number 514 is Infinity
2017-03-31T22:44:05.496Z - debug: Notification threshold outbound price for flight 514 is 276
2017-03-31T22:44:05.496Z - debug: Lowest return price for flight number 6515 is Infinity
2017-03-31T22:44:05.497Z - debug: Notification threshold return price for flight 6515 is 324

The problem is that the HTML being returned for international flights (Puerto Vallarta) is completely different and so the scraper logic is broken.

HTML Changed

Hello, it appears the HTML has changed (again) :(

2017-08-28 17:33:25 - info: Checking Southwest for roundtrip prices with parameters:
originAirport: LAX
destinationAirport: PHX
outboundDateString: 12/26/2017
returnDateString: 1/1/2017
adultPassengerCount: 2
fareType: DOLLARS
2017-08-28 17:33:26 - error: Not able to determine lowest outbound fare! Has site HTML changed?
2017-08-28 17:33:26 - error: Not able to determine lowest outbound fare! Has site HTML changed?
2017-08-28 17:33:26 - debug: Lowest outbound price is Infinity
2017-08-28 17:33:26 - debug: Notification threshold outbound price is 600
2017-08-28 17:33:26 - debug: Lowest return price is Infinity
2017-08-28 17:33:26 - debug: Notification threshold return price is 700

Please let me know if you need any other information! Thanks!

Oneway

I book a lot of my swa flight via one-way fares. Anyway to change it to just search a one-way fare and alert you?

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.