PIP package to get status of flight pnr status and other details [Supports multiple Indian Airlines]
To install this pip package run the following command.
pip install flight-status
- Indigo
- Spice Jet
- AirAsia
- Chrome webdriver is required for the package to work.
- webdriver execuatable is passed as parameter to the package.
- Download chrome webdriver supported for your installed chrome version.
Download Link: https://chromedriver.chromium.org/downloads
- Create an object of class
Airlines
with particular aviation company.
params:
- aviation : Aviation company name
- config : webdriver config
Example:
driver_config = {"webdriver": "chrome", "executable": "/path/to/executable"}
aviation = Airlines(aviation="indigo", config=driver_config)
- Use available functions to get respective details.
- define a
config
dict with the required parameters
Airline | Config |
---|---|
indigo | { "booking_reference": "XXX", "email_lastname": "XXX"} |
spice_jet | { "booking_reference": "XXX", "email_lastname": "XXX"} |
air_asia | { "booking_reference": "XXX", "email_lastname": "XXX", "departure_city": "XXX"} |
aviation.get_pnr_status(parameters=config)