Scripts to maintain German law git repository
Python
Latest commit 99a3497 Jan 14, 2017 holgerd77 Updated lxml requirement to 3.7.2 from 2.3.5, added new cssselect req…
…uirement (split up from new lxml version)

README.md

BundesGit Gesetze Tools

These scripts are used to keep the law repository up to date.

Install requirements:

pip install -r requirements.txt

For help see their docstring, command line help or source code.

lawde.py

Downloads all laws as XML files from www.gesetze-im-internet.de and extracts them to a directory.

Last tested: 2017-01-14 SUCCESS

lawdown.py

Converts all XML laws to Markdown and copies them with other files related to the law into specified working directory.

Last tested: 2017-01-14 SUCCESS

bgbl_scraper.py

Scrapes the table of contents of all issues of the Bundesgesetzblatt and dumps the result to JSON.

Last tested: 2017-01-14 FAILED ("KeyError: xaversid")

banz_scraper.py

Scrapes the table of contents of all available issues of the Bundesanzeiger and dumps the result to JSON.

Last tested: 2017-01-14 SUCCESS

lawgit.py

Checks the repositories working directory for changes, tries to find relations to table of content entries in BGBl and BAnz data, commits the changes to a branch and merges the branch into master.

Last tested: 2017-01-14 SUCCESS