A simple HTML Parser for grabbing the list of airports available in the World Airport Codes website
- Ruby 2.2 or greater
$bundle install
$ruby airport_crawler.rb
It will generate a .JSON
file with all airports (the ones with IATA code). The file is optimized to get a small size and be embedded in your app (around 700 KB). You can change the code to generate a fancier output if you want.
[
/* IATA;AirportName;City;Country */
"ATT;Atmautluak;Atmautluak;United States"
]