A collection of scrapers for retrieving results of games at nlcb.co.tt.
NLCB game results scrapers.
argent-drivers is in the npm repository. To install
$ npm install argent-drivers
This is the recommended way to install
You can also get
argent-drivers from github.com
git clone https://github.com/Devon-Olivier/argent-drivers.git to get
$ npm install in the root of the repository installs the node modules dependencies.
var lottoplusDrivers = require'argent-drivers'lottoplus;
Scrapes nlcb.co.tt for lottoplus draws.
getDraw: DrawProperty -> promise
Consume a DrawProperty of a set of draws return a promise for those draws specified by the DrawProperty.
DrawProperty is any one of the following types:
If the DrawProperty is a number return a promise for the draw with that number. If the DrawProperty is a Date, return a promise for the draw on that date. If the DrawProperty is a RangeObject then return a promise for an array of draws in [RangeObject.start, RangeObject.end);
The following prints the draw for 1 December, 2012.
#! /usr/bin/env nodevar lottoNlcb = require'argent-drivers'lottoplus;lottoNlcbgetDraw'2012 12 1'thenconsole.log console.error;
The following prints all draws in December 2012.
#! /usr/bin/env nodevar lottoNlcb = require'argent-drivers'lottoplus;var range =start: '2012 12 1'end: '2013 1 1';lottoNlcbgetDrawrangethenconsole.log console.error;
The following prints the first lottoplus draw ever.
#! /usr/bin/env nodevar lottoNlcb = require'argent-drivers'lottoplus;lottoNlcbgetDraw1thenconsole.log console.error;
The following prints draws with numbers from 1 to 10 inclusive.
#! /usr/bin/env nodevar lottoNlcb = require'argent-drivers'lottoplus;var range =start: 1end: 11;lottoNlcbgetDrawrangethenconsole.log console.error;
getNextDraw: undefined -> Promise for the next Draw
Returns a Promise for the next draw to be played. The
numberOfWinners properties are undefined.