1.1.1 • Published 5 years ago

scrutin-scraper v1.1.1

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

Scrutin Scraper Lib

Scrapping Assemblée Nationale scrutin

Lib for Scrutin Scraper

Install

$ npm install scrutin-scraper

Usage

const scrutScrap = require('scrutin-scraper')

const scrutin = await scrutScrap({
  legislature: 15,
  scrutin: 1116,
  voteTypes: ['Pour', 'Contre', 'Non-votants']
})

console.log(scrutin)
// => [{
//        name: 'Dupond',
//        fullName: 'Jean Dupond',
//        vote: 'Pour'
//     }, ...]

console.log(JSON.stringify(scrutin))
// => JSON data

const CSV = require('csv-stringify')
CSV(scrutin, { header: true }, (err, output) => console.log(output))
// => CSV data

License

ISC © Léo Colombaro

1.1.1

5 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago