Skip to content

ejulio/sky-scanner-flight-prices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sky Scanner Flight Prices

This is a simple Command Line Interface (CLI) to fetch flight prices from multiple origins/destinations.

This is handy to estimate flight prices for groups leaving from different places or to find a place cheaper for all!

Setup

Go to https://rapidapi.com/ and login/signup for an API KEY

git clone
cd sky-scanner-flight-prices
python3 -m venv .venv  # or any virtual environment you like
pip install -r requirements.txt

Running

python flight_prices.py \
    --origin "NVT/BR" \
    --country="BR" \
    --destination "RIOA" \
    --departure-date "2019-09-17" \
    --return-date "2019-09-21" \
    --api-key "YOUR API KEY" \
    --output "flight-prices.csv" \
    --output-summary "summary.csv"

Please note the suffix /BR in origin is only required if you are booking flights from different origin countries. country is the country to look for offers. This is usually the country of origin airport. If no specified on origin this value will be used.

To get a list of airports, this might help https://rapidapi.com/skyscanner/api/skyscanner-flight-search?endpoint=5a9c9edde4b084deb4ea6195

About

A [hackish] CLI Tool to help computing flight prices from multiple origins <-> destinations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages