This scraper is an extended and updated version of the one used to generate the original visualizations on Bund.OffenerHaushalt.de. It uses JSON data available on the "Bundeshaushalt-Info" web site of the Federal Ministry of Finance (Bundesministerium für Finanzen).
To run the scraper, please make sure you have the specified dependencies installed in a virtualenv, e.g. like this:
virtualenv pyenv source pyenv/bin/activate pip install -r requirements.txt
Having ensured the dependencies are installed, you can run the scraper:
This will attempt to extract all budget line items for the budgets between
2012 and 2015. If you want to scrape only a single year, edit the list at the
The scraper was written by Friedrich Lindenberg <email@example.com> for the OpenSpending project. The code is licensed under the MIT License.
Please report bugs and questions to the issue tracker on GitHub.
Total run time: less than 5 seconds
Total cpu time used: less than 5 seconds
Total disk space used: 30.9 MB