calfire
Version:
Unofficial CalFire data scraper.
41 lines (23 loc) • 652 B
Markdown
CalFire
=======
An unofficial [CalFire](http://www.fire.ca.gov/) incident scraper/parser.
## Installation
```sh
npm install --save calfire
```
## Usage
```javascript
// node.js
'use strict';
const calfire = require('calfire');
calfire.rss().then(console.log);
// returns a list of active incidents;
calfire.currentIncidents().then(console.log);
// returns a list of incidents from the first page from /current_incidents
calfire.currentIncidents({page: 3}).then(console.log);
// gets incidents from the third page of results
calfire.get(12345).then(console.log);
// gets an incident from the ID provided.
```
## License
See LICENSE.txt