Skip to content

Use Google Flights API and scrape Expedia to find the cheapest/shortest flights!

Notifications You must be signed in to change notification settings

baekchun/find-cheapest-flights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

find-cheapest-flights

Find the cheapest or shortest roundtrip flights by comparing prices from Expedia and Google Flights. Given your departing and arriving airports and dates, this scraper tries to find the cheapest or shortest flights. Please note that this scraper looks for flights +/- 1 day of the given dates as well to check to see if we can find any cheaper flights.

Getting Started

Note: This code has been tested/optimized for Python 2.x

Prerequisites

Please make sure to install these packages before trying to run this code!

pip install pattern
pip install requests

Please also make sure you get a Google API key and insert it into google_flights_API.py file

How to run this code:

python price_check.py [departure_date] [return_date] [departure_airport] [return_airport]

Example:

python price_check.py 08/30/2017 09/30/2017 BWI ICN

Authors

  • Baekchun Kim

About

Use Google Flights API and scrape Expedia to find the cheapest/shortest flights!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages