Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xasos/node-skiplagged
Node.js wrapper for Skiplagged
https://github.com/xasos/node-skiplagged
Last synced: about 2 months ago
JSON representation
Node.js wrapper for Skiplagged
- Host: GitHub
- URL: https://github.com/xasos/node-skiplagged
- Owner: xasos
- License: mit
- Created: 2015-01-10T02:16:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T01:50:20.000Z (almost 10 years ago)
- Last Synced: 2024-10-14T21:18:30.530Z (3 months ago)
- Language: JavaScript
- Size: 289 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-skiplagged
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]
Node.js wrapper for [Skiplagged](http://skiplagged.com), the hidden-city travel site. This library scrapes results from Skiplagged (the URL structure is fairly exposed) and formats the raw data for you to use.
**NOTICE**: Not complete, under active development.
## Installation
```sh
$ npm install --save skiplagged
```## Usage
```javascript
var Skiplagged = require('skiplagged');
var sl = new Skiplagged();sl.flights('ORD', 'JFK', '2015-02-24', '2015-02-26');
```## Sample response
```json
[{
"time": "5h",
"startTime1": "3:17pm",
"endTime1": "6:13pm",
"startDate": "2015-02-14",
"endDate": "2015-02-15",
"flightNumber1": "1432",
"startTime2": "7:05pm",
"endTime2": "8:50pm",
"flightNumber2": "1480",
"layoverTime": "52m",
"startAirport": "ORD",
"layoverAirport": "CLT",
"endAirport": "JFK",
"price": "106",
"airline": "American Airlines",
"flightURL": "http://api.skiplagged.com/asplkdasddpoisakd",
"tripLength": "3d"
},
{
"time": "4h",
"startTime1": "1:41pm",
"endTime1": "2:51pm",
...
...
}]
```## Uses
There are some very interesting uses for using Skiplagged data. For example, you could create a Mac OS X extension that notifies you whenever a flight is at a desired price.## License
[The MIT License](LICENSE)
[npm-url]: https://npmjs.org/package/skiplagged
[npm-image]: https://badge.fury.io/js/skiplagged.svg
[travis-url]: https://travis-ci.org/xasos/node-skiplagged
[travis-image]: https://travis-ci.org/xasos/node-skiplagged.svg?branch=master
[daviddm-url]: https://david-dm.org/xasos/node-skiplagged.svg?theme=shields.io
[daviddm-image]: https://david-dm.org/xasos/node-skiplagged