diff options
author | Martin Fischer <martin@push-f.com> | 2021-03-03 16:38:37 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-03-03 16:41:28 +0100 |
commit | 30099b5d9b616b820341b70582f26685597cebe5 (patch) | |
tree | a86d86629b7bf260bf056e6e9c8c3e024aab0d04 /scrapers/de.py | |
parent | 294ec05490f639c08d69d010f769b8d60aa3650d (diff) |
differentiate between abbreviations and redirects
Diffstat (limited to 'scrapers/de.py')
-rwxr-xr-x | scrapers/de.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scrapers/de.py b/scrapers/de.py index 7e0cd1f..9450143 100755 --- a/scrapers/de.py +++ b/scrapers/de.py @@ -21,6 +21,7 @@ for idx, l in enumerate(LETTERS, 1): title = el[1].tail.strip(), url = urllib.parse.urljoin(url, target), abbr = abbr, + redir = abbr, )) with open('laws/de.json', 'w') as f: json.dump(sorted(laws, key=lambda l: l['title']), f, indent=2, ensure_ascii=False) |