Skip to content

To return cheapest round-flight-fare based on budget and other params (Indian ver)

Notifications You must be signed in to change notification settings

Shivanshu26shiv/aircheapy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aircheapy - returns cheapest flight-fare based on various parameters by scraping Happyeasygo.com

With aircheapy, you can get cheapest flight fares displayed on Happyeasygo.com - a travel portal for Indian users, where in its flight booking system, either one of the departure and arrival cities must be in India. Parameters to be used are as below:

{
'adults': 2,
'cabinClass': 'Economy', # Economy, Business, First, Premium Economy
'cheapest_N_results': 3,
'depart_on_weekend': False,
'from_IATA': {'BLR': 'Bengaluru'},
'maxINR': 30000,
'round_trip': True,
'scan_till_N_days': 30,
'to_IATA': {'BKK': 'Bangkok', 'DXB': 'Dubai'}

# below 3 flags are ignored if round_trip flag is off
'minGap': 3, # minimum gap between days of departure & arrival 
# 'maxGap': 3, # maximum gap between days of departure & arrival 
'arrive_on_weekend': True,
}

P.S: need a fair internet connection to scrape data

Using it:

  1. To use aircheapy, fork this github repo
  2. Download the dependencies using requirements.txt
  3. Run aircheapy.py after customising params dict

Compatibility:

aircheapy is compatible for python3.

Sample output:

{
'Bengaluru->Bangkok->Bengaluru': 
	[('05 March 2020 (Thursday) to 14 March 2020 (Saturday) '
	'[https://www.happyeasygo.com/flights/BLR-BKK/2020-03-05-2020-03-14?adults=2&cabinClass=Economy]',
	23810)]
}

Contact:

About

To return cheapest round-flight-fare based on budget and other params (Indian ver)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages