wahlrecht
Scrapes wahlrecht.de for the latest public opinion polls on the german general election (Bundestagswahl).
Installation
npm install wahlrecht
Usage
The module provides seperate methods for each institute:
allensbach()
emnid()
forsa()
politbarometer()
- Forschungsgruppe Wahlengms()
dimap()
- Infratest Dimapinsa()
and a method that combines all polls:
all()
Each method returns a promise
that resolves in an array of objects like this:
date: '2017-01-27T00:00:00+01:00' results: union: 036 spd: 024 'grüne': 008 fdp: 006 linke: 01 afd: 011 sonstige: 005 sampleSize: 1303 period: '24.01.–26.01.' institute: 'politbarometer'
Simple example:
const wahlrecht = wahlrechtallwahlrecht
See also
sainte-lague
- Sainte-Laguë seat distribution methodhare-niemeyer
- Hare-Niemeyer seat distribution methodparliament-svg
- Parliament charts
Contributing
If you found a bug or want to propose a feature, feel free to visit the issues page.