Skip to main content

Library for extracting rechtspraak data

Project description

This library contains two functions to get rechtspraak data and metadata from the API.

How to install?

pip install rechtspraak_extractor

What are the functions?

  1. get_rechtspraak
  2. Gets all the ECLIs and saves them in the CSV file or in-memory
  3. get_rechtspraak_metadata
  4. Gets the metadata of the ECLIs created by above function and saves them in the new CSV file or in-memory

What are the parameters?

  1. Rechtspraak API
  2. 3 parameters:
    • max: Maximum amount of ECLIs you would like to retrieve
    • If not provided, default value of 100 is taken.
    • start date: The start publication date
    • If not provided, default value of 2022-08-01 is taken.
    • end date: The end publication date
    • If not provided, current date is taken.
  3. Rechtspraak metadata API
    • save_file: ['y', 'n']: Whether you would like to save the data as a CSV file or in-memory
    • If not provided, default value of 'n' is taken. For 'y', a new folder 'data' is created to save the files.

How to run?

import rechtspraak_extractor as rex
rex.rechtspraak.get_rechtspraak(1000, '2022-08-01')
rex.rechtspraak_metadata.get_rechtspraak_metadata()





MIT License

Copyright (c) 2022 Maastricht Law & Tech Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rechtspraak_extractor-1.0.7-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page