Kaya Çelebi
Home About GitHub PyPI Contribute Contact

Introduction

Follow @kcelebi Star Watch

This package contains tools and functions that can collect flight data! Documentation being updated, sorry!

Feel free to open an issue or contact me with any questions/inquiries.

Installation

The package is designed for Python version >=3.6 and can be installed using pip:

$ pip install google-flight-analysis

If issues arise try:

$ python3 -m pip install google-flight-analysis

Usage

The base usage for this package is to scrape flight data. We obtain a Scrape() object which maintains the scraping results as well as meta-data. Here is some starter code:

from google_flight_analysis.scrape import *

# Scrapes Google Flights for round-trip JFK to IST, leave July 15, 2023, return July 25, 2023.
result = Scrape("JFK", "IST", "2023-07-15", "2023-07-25")

# Obtain data + info
flights = result.data # outputs as a Pandas dataframe
origin = result.origin # "JFK"
dest = result.dest # "IST"
date_leave = result.date_leave # "2023-07-15"
date_return = result.date_return # "2023-07-25"