Hire Me!
Coding & Aviation

Life of a pilot who loves coding.

  • About
  • Archives
  • Projects

Aviation JSON



Motivation

Once completed the aviation-scraper CLI, it’s time to use it.

I’ve downloaded the data and exposed different JSON files with all the data in an organized and usable way. To have them available you only need to do npm install aviation-json

For this module I have also created a CLI. The Makefile with a single command make sync downloads all the data from wikipedia with the aviation-scrapper CLI and then updates the JSON files that the package exposes.

Experience

Filtered and made available the data so it can be used fast.

Let’s say that you want to see all the information from American Airlines, you just need the following:

1
2
3
var aviationJson = require("aviation-json");

console.log(aviationJson.airlines.American_Airlines);

Learning

Normalized the diversity of results and established the most convenient indexes for the objects.

License:
Licensed on OSI-approved terms MIT

© 2017 Cristobal Gomez |
Powered by Hexo
Theme - NexT.Muse