️ Track changes in Aeroméxico fare prices through the command-line
Ensure you have Node.js version 4+ installed.
- Clone the repository
- Install dependencies:
npm install - Create global symlink:
npm link
An npm package is intentionally not provided.
$ amx-tracker <options>All searches are made for one adult.
When tracking, notifications are sent (via Twilio as SMSs) when a desired deal price has been met.
To enable notifications setup these environmental variables with your Twilio account details:
TWILIO_ACCOUNT_SID
TWILIO_AUTH_TOKEN
TWILIO_PHONE_FROM
TWILIO_PHONE_TOScenario A: Get the current cheapest total of any roundtrip flight (1 adult) from TIJ to MEX leaving 2017-03-13 and returning 2017-03-20.
$ amx-tracker \
--from TIJ \
--to MEX \
--departure 2017-03-13 \
--return 2017-03-20Scenario B: Track any roundtrip flight (1 adult) from TIJ to MEX leaving 2017-08-07 and returning 2017-08-14 with a desired deal price total of 5000 MXN (or less), polling every 60 minutes.
$ amx-tracker \
--deal-price 5000 \
--from TIJ \
--to MEX \
--departure 2017-08-07 \
--return 2017-08-14 \
--interval 60Scenario C: Track any one-way flight (1 adult) from MEX to CUN leaving 2017-08-07 and returning 2017-08-14 with a desired deal price total of 7000 MXN (or less), polling every 30 minutes.
$ amx-tracker \
--deal-price 7000 \
--from MEX \
--to CUN \
--departure 2017-08-07Origin airport IATA code.
Destination airport IATA code.
Departure date in YYYY-MM-DD.
Return date in YYYY-MM-DD. Leave out if it's a one-way flight.
Desired total price in Mexican Pesos (MXN). Leave out if not tracking a price and instead just want to get the current cheapest total.
Number of minutes until next time fare prices are checked. 30 by default. Ignored if --deal-price was not set.
You can also pre-configure the app using the following environmental variables.
Do not combine both, CLI options and environmental variables, because you'll get unexpected behavior.
Same as --from.
Same as --to.
Same as --departure.
Same as --return.
Same as --deal-price.
Same as --interval.
- cheapest-airfare-amx - Get the cheapest airfare of an Aeroméxico flight
- cheapest-airfare-viv - Get the cheapest airfare of a VivaAerobus flight
MIT © Alejandro Beltrán
This was made for illustrative purposes. I do not own the content generated by this tool. All rights belong to their respective owners. No copyright infringement intended.
Inspired by swa-dashboard