Skip to content

Python module for getting Wahlrecht.de polling data

License

Notifications You must be signed in to change notification settings

stefanw/wahlrecht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python module for getting Wahlrecht.de polling data

Install:

 pip install wahlrecht

Run like this:

$ python -m wahlrecht <jurisdiction> > output.csv

jurisdiction determines which kind of election will be downloaded. It can be a state election with a state slug (like 'baden-wuerttemberg') or for the federal election 'bund'.

Or just download everything:

$ sh download.sh

Or use like this as a Python module.:

from wahlrecht import get_state_polls, get_federal_polls

for info in get_state_polls('nrw'):
    print(info)

for info in get_federal_polls():
    print(info)

About

Python module for getting Wahlrecht.de polling data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published