Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

catchTender

daniel-llach3MIT1.5.0

A bot that catch tenders from Chilean government API into a mongoDb

tenders, licitaciones, estado, chilecompra, chile

readme

catchTender

It's a bot that allow you to catch daily tenders from Chilean Government API into a local mongoDb.

alt tag

Considerations

catchTender bot respect the Chilean Government terms and conditions:

1.- Limit of 10.000 hits by day

2.- It's connect at 22:00 - 07:00 hr

3.- It can't make simultaneous hits

catchTender must be installed in the same local environment of the mongodb database where you want to save the data. I recommend you construct an API service to drive caught tenders data from your custom external App, this is to avoid to create ssh tunnel.

IMPORTANT: The next ticket is an example, get your personal government ticket here

Install

Install in your own project as dependencies this way:

npm install catchTender --save

Use

let tenders = require('catchTender')
tenders({
  ticket: 'F8537A18-6766-4DEF-9E59-426B4FEE2844',
  db: 'exampleDb'
})