Module created to make available a quick way to update all the aviation related information from wikipedia.
Using the package aviation-scraper to download all the information regarding airports, airlines and their destinations from wikipedia exposes the following files:
install via npm:
npm install aviation-json --save
var aviationJson = require("aviation-json"); // then you will have available all the information. var airlineDestinations = aviationJson.airline_destinations; var airlines = aviationJson.airlines; var airportAirlines = aviationJson.airport_airlines; var airportsCities = aviationJson.airport_cities; var airportRunways = aviationJson.airport_runways; var airports = aviationJson.airports; var cityAirports = aviationJson.city_airports;
Go to the node_modules/aviation-json directory and run 'make sync'
This is going to take a while and depending on your internet connection you may have troubles, after the 5 time trying to reach the wikipedia page to scrape the information, it will throw and err.
All the code is properly tested. To run the test:
# this command lint all the files and runs the tests. make test
if you want to be in watch mode:
# this command run the test in watch mode. make dev
If you want to contribute, create your branch and place a PR or open an issue.