Socket
Book a DemoInstallSign in
Socket

aviation-scraper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aviation-scraper

Scraper to get airlines and airport data

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

Codeship Status for cristobal-io/aviation-scraper Coverage Status

Aviation Scraper

This project is going to be composed of few packages that are going to be scraping from wikipedia the following information:

  • World Airports
  • World Airlines
  • World destinations

This is intended for use of an updated database of information for a map application.

Testing

Before testing this application you have to run make update-local-pages to download a local copy of the html pages required for tests.

Then run tests with make test

Usage

From the CLI

aviation-scraper -h

displays this help:

  Usage: aviation-scraper [options]

  Retrieve airlines destinations and airports data.
  Multiple options are not allowed, only '-b' and '-s' options can be combined with the rest.

  Example for saving individual files to airports:
  $ aviation-scraper -a -s true

  Example for saving file to an specific directory:
  $./aviation-scraper -a -b './my_new_directory'

  Options:

  -h, --help            output usage information
  -V, --version         output the version number
  -l, --list            List of airports with the link to the wikipedia page. (Saved to a single file)
  -d, --destinations    Destinations of all the airlines listed on the wikipedia. (saved each airline with an individual JSON file)
  -a, --airports        Saves the important data for each airport (saved in a single JSON file and optional for each airport)
  -c, --companies       Saves all the airline links and all the important information for each airline.
  -b, --base <basedir>  the base directory where to save the files generated (default: tmp)
  -s, --save <save>     this options allows you to save individual files for each airline, airport or destination (default:false)

Contribute

if you wish to contribute create your branch and create a pull request on the dev branch or you can create an issue.

Keywords

aviation

FAQs

Package last updated on 12 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.