Skip to content

Simple python script to scrape polls from abgeordnetenwatch api

Notifications You must be signed in to change notification settings

okfde/fds-abgeordnetenwatch_polls_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fds-abgeordnetenwatch_polls_scraper

Install

git clone [email protected]:okfde/fds-abgeordnetenwatch_polls_scraper.git
cd fds-abgeordnetenwatch_polls_scraper
python -m venv polls
source ./polls/bin/activate
pip install -r requirements.txt

Config

Get legislature-id from https://www.abgeordnetenwatch.de/api/v2/parliament-periods (e.g. 132 is "Bundestag 2021-2025")

Set the proper value in scrape.py.

Execute

Run python ./scrape.py.

When the script is done you will find the scraped values in votes.json and votes.csv.

About

Simple python script to scrape polls from abgeordnetenwatch api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages