googleflightscraper
v2.1.3
Published
This is a Module that scrapes Google for Flight Information
Downloads
7
Maintainers
Readme
GoogleFlightScraper
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