barrettc / swa-price-drop Goto Github PK
View Code? Open in Web Editor NEWCheck for Southwest Airlines price drops for specific outbound and return flight numbers.
Check for Southwest Airlines price drops for specific outbound and return flight numbers.
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!
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.
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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.