loterias-caixa-scraper
v0.2.1
Published
A module that allows you to pick up data from the lottery of the Brazilian Caixa Econômica Federal
Downloads
12
Maintainers
Readme
Loterias caixa scraper
Um módulo nodejs que permite pegar dados dos resultados dos sorteios da Caixa Econômica Federal Brasileira [English] A nodejs module that allows you to pick up data from the lottery of the Brazilian Caixa Econômica Federal
Supported Raffles
- Megasena
- Quina
- Lotofacil(coming soon)
Install
npm i loterias-caixa-scraper --save
Usage
const lottery = require('loterias-caixa-scraper')
// or import
import { resultByNumber } from 'loterias-caixa-scraper'
Get last result
//get the last megasena result data
lottery
.resultByNumber('megasena')
.then((result) => {
console.log(result)
})
.catch((e) => {
console.log(e)
})
Get an especific result by number
// to get especific megasena result data by number
lottery
.resultByNumber('megasena', 2117)
.then((result) => {
console.log(result)
})
.catch((e) => {
console.log(e)
});
CLI
loterias-caixa r [type]
loterias-caixa r [type] [number]
Methods
resultByNumber(typeRaffle, numberRaffle)
typeRaffle: String, numberRaffle: Number Return raffle data If number is undefined, this method will return the last raffle data
Dev
To edit, lint and build
npm run clean: Clean builds
npm run lint: Check for errors
npm run build: Generate minified build with source-maps
npm run watch: Generate minified build with source-maps on save
npm run prepare: Clean and build