Skip to main content

Library for extracting rechtspraak data

Project description

Rechtspraak extractor

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

Contributors

BogDAAAMN
Bogdan Covrig
maxin-e
maxin-e
pedrohserrano
Pedro V
MarionMeyers
MarionMeyers
kodymoodley
Kody Moodley
jaspersnel
Jasper Snel
gijsvd
gijsvd

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.
    It gets, ECLI, Title, Summary, Updated date, Link.
  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.
    Link attribute that we get from the above function contains the links of ECLI metadata.
    It gets instantie, datum uitspraak, datum publicatie, zaaknummer, rechtsgebieden, bijzondere kenmerken, inhoudsindicatie, and vindplaatsen

What are the parameters?

  1. get_rechtspraak
    • max_ecli: Maximum amount of ECLIs you would like to retrieve
    • If not provided, default value of 100 is taken.
    • sd: The start publication date (yyyy-mm-dd)
    • If not provided, default value of 2022-08-01 is taken.
    • ed: The end publication date (yyyy-mm-dd)
    • If not provided, current date is taken.
    • save_file ['y', 'n']:: Save data as a CSV file
    • If not provided, it is saved inside data folder by default.
  2. get_rechtspraak_metadata
    • save_file ['y', 'n']: Save data as a CSV file
    • If not provided, it is saved inside data folder by default.

Examples

import rechtspraak_extractor as rex

rex.get_rechtspraak(max_ecli=1000, sd='2022-08-01', save_file='y')

rex.get_rechtspraak_metadata(save_file='y')

If you want in-memory data, and not in a CSV file, assign it to a variable and that variable will contain the dataframe
df = rex.get_rechtspraak_metadata(save_file='n')

License

License: MIT

Previously under the Creative Commons Attribution-NonCommercial 4.0 International), as of 13/02/2022 this work is licensed under a MIT License.

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.18-py3-none-any.whl (10.0 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