New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

wpi-kkp-crawler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wpi-kkp-crawler

Fisheries price crawler for wpi.kkp.go.id

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

wpi-kkp-crawler

This is an unofficial module to fetch fisheries prices from KKP, which includes grouping for dates, locations and commodities.

This was built with ES2015 in mind, so you need to use nodejs 6 minimum, or use babel with babel-preset-es2015 preset.

First, a warning.

This module doesn't affiliate with KKP in any way, and you shouldn't treat this module as official way to interact with KKP's API.

Install

## NPM
$ npm install --save wpi-kkp-crawler

Usage

const wpiCrawler = require('wpi-kkp-crawler');

wpiCrawler.fetch({
  start: '2016-02-01',
  end: '2016-02-03',
  groupBy: 'komoditas',
})
.then((data) => {
  console.log(data);
})
.catch(console.log);

API

fetch([params])

params

start (required)

Type: string

Start date of prices data.

end (optional)

Type: string

End range of prices data date. Default to same as start param.

groupBy (optional)

Type: string

Grouping data by tgl, prov, kab, komoditas. Default to tgl.

Release History

see CHANGELOG.md

License

Copyright (c) 2017 Ahmad Anshorimuslim Licensed under the MIT license.

Keywords

wpi

FAQs

Package last updated on 10 Jun 2017

Related posts