How I Created a Database of Flight Ticket Prices and Send Myself the Cheapest Flights Weekly

Gustavo R Santos
8 min readDec 9, 2024

Collecting flight ticket prices from the Internet, storing them in a DB, and sending a message via WhatsApp.

Flight ticket prices. Image generated by AI. Google Geminie 3, 2024. https://gemini.google.com.

Introduction

As a Brazilian guy living in the USA, I have to search for flight tickets every once in a while.

On the other hand, as a Data Scientist with some coding skills, I also like to create new personal projects to test modules, try new tools that I learn, and keep my skills sharp.

That is how I came up with the idea of creating a project to search for flights between the USA and Brazil. But I wanted something else. I wanted to keep those records to be able to analyze them in the future when I have enough data, to check when the prices decrease, or how long before the flight is the best time to purchase a ticket. If possible, I also would like to send some information about the search to my phone.

That said, let’s move on and define the problem that needs to be solved in the project.

Problem

The problem can be simply defined as follows.

Get weekly flight prices and store them in a relational DB.

--

--

Gustavo R Santos
Gustavo R Santos

Written by Gustavo R Santos

Data Scientist | I solve business challenges through the power of data. | Visit my site: https://gustavorsantos.me

No responses yet