Skip to content

feat: implement flight data scraping - #40

Open
bhuvanh66 wants to merge 1 commit into
mainfrom
7-flights-integration
Open

bhuvanh66 wants to merge 1 commit into
mainfrom
7-flights-integration

Conversation

@bhuvanh66

@bhuvanh66 bhuvanh66 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Closes #7 Adds Flight data

  1. CSO (Central Statistics Office, Ireland)
    Gives: monthly passenger numbers for Irish airports, by country, direction and flight type (table TAM07)
    Endpoint: https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset/TAM07/CSV/1.0/en
    Auth: none

  2. OpenSky Network
    Gives: every individual arrival at Dublin (EIDW). It has callsign, aircraft ID and estimated departure airport, but no airline, aircraft model or passenger info.
    Endpoint: https://opensky-network.org/api/flights/arrival
    Auth: OAuth2 client ID and secret (token from auth.opensky-network.org). The free tier gives 4,000 credits a day.

  3. AeroDataBox (via RapidAPI)
    Gives: scheduled passenger arrivals into DUB, with airline, aircraft model, origin and status
    Endpoint: https://aerodatabox.p.rapidapi.com/flights/airports/iata/{airport}/{from}/{to}
    Auth: RapidAPI key. The free plan gives 400 units a month.

Added to example.env to put in api keys for these services

Type of change

  • feat — new feature
  • fix — bug fix
  • docs — documentation only
  • refactor — code change that neither fixes a bug nor adds a feature
  • perf — performance improvement
  • test — adding or updating tests
  • chore / build / ci — tooling, deps, or pipeline changes

Changes

  • Add CSO, Opensky, and AeroDataBox APIs

Database migrations

  • No schema changes
  • Includes an Alembic migration (just migrate-create "...")
  • Migration runs cleanly (just migrate) and rolls back (just migrate-down)

Checklist

  • Commits follow Conventional Commits
  • Lint passes (just lint) and code is formatted (just format)
  • Pre-commit hooks run clean (just hooks installed)
  • Updated docs / README / .env.example where relevant
  • Tested locally (just dev) and verified the API at http://localhost:8000/docs

How to test

Notes for reviewers

@bhuvanh66 bhuvanh66 linked an issue Oct 7, 2026 that may be closed by this pull request
@bhuvanh66
bhuvanh66 force-pushed the 7-flights-integration branch from 1c61ec7 to 91b2b0d Compare October 7, 2026 20:11
@bhuvanh66
bhuvanh66 requested a review from selvarajuv October 7, 2026 20:11
@narang-an
narang-an force-pushed the 7-flights-integration branch from 91b2b0d to 9a12227 Compare October 7, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

External factor integration: Flights

2 participants