googleflightscraper

2.1.3 • Public • Published

GoogleFlightScraper CircleCI

A Module that Scrapes the Google Page when a flight is given

Dependencies:

  • Cheerio
  • Request

Installation:

npm install googleflightscraper

Usage:

var tracker = require('googleflightscraper')
 
tracker("JU 500", function(flightinfo,error){
 
    if (error) {
 
        console.log(error.message)
 
    }
    
    else {
        var status = flightinfo["Status"]
        console.log(status)
    }
 
})
 

Options:

  • Flight: Returns the Flight
  • Status: Tells you the Status of the flight: Scheduled, Delayed, Cancel
  • DepartureCountry: Country the Flight is Departing
  • DepartureCode: Returns the Airport Code of the Departing Airport
  • DepartureTime: Time the Flight is departing
  • DepartureTerminal: Terminal + Gate for the flight
  • ArrivalCountry: Country the Flight is Departing
  • ArrivalCode: Returns the Airport Code of the Arriving Airport
  • ArrivalTime: What Time the Flight is arriving.
  • ArrivalTerminal: Terminal + Gate for the flight arriving
  • Information: Additional information like: departs in 22 hours 25 mins

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.3
    1
    • latest

Version History

Package Sidebar

Install

npm i googleflightscraper

Weekly Downloads

1

Version

2.1.3

License

MIT

Unpacked Size

8.8 kB

Total Files

7

Last publish

Collaborators

  • matejmecka