# scrutin-scraper

> Scraping French Assemblée Nationale voting results

Latest version **1.1.1** (published 2019-01-13) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install scrutin-scraper
pnpm add scrutin-scraper
yarn add scrutin-scraper
bun add scrutin-scraper
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-01-13 |
| First published | 2018-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Léo Colombaro |
| Maintainers | leocolomb |

## Links

- npm: https://www.npmjs.com/package/scrutin-scraper
- Repository: https://github.com/LeoColomb/scrutin-scraper/tree/master/packages/lib
- npm.io page: https://npm.io/package/scrutin-scraper

## Dependencies (2)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.2.0

## Recent versions

- 1.1.1 (latest) — 2019-01-13
- 1.1.0 — 2018-11-11
- 1.0.2 — 2018-10-13
- 1.0.1 — 2018-10-13
- 1.0.0 — 2018-10-13

## README

# Scrutin Scraper Lib

> Scrapping Assemblée Nationale scrutin

_Lib for [Scrutin Scraper](https://github.com/LeoColomb/scrutin-scraper)_

## Install

```bash
$ npm install scrutin-scraper
```

## Usage

```javascript
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](https://colombaro.fr)

---
_Source: https://npm.io/package/scrutin-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
