This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

scrutin-scraper

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i scrutin-scraper

Weekly Downloads

4

Version

1.1.1

License

ISC

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • leocolomb