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.

Version

Python 3.9

Contributors

pranavnbapat
Pranav Bapat
Cloud956
Piotr Lewandowski
shashankmc
shashankmc
gijsvd
gijsvd

How to install?

pip install rechtspraak_extractor

What are the functions?

  • Rechtspraak Extractor
    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
  • ECHR - Work in progress
  • Cellar - Work in progress
  • What are the parameters?

    1. get_rechtspraak(max_ecli=100, sd='2022-05-01'), ed='2022-10-01', save_file='y')
    2. Parameters:
      • max_ecli: int, optional
      • Maximum amount of ECLIs to retrieve
        Default: 100
      • sd: date, optional, default '2022-08-01'
      • The start publication date (yyyy-mm-dd)
      • ed: date, optional, default current date
      • The end publication date (yyyy-mm-dd)
      • save_file: ['y', 'n'], default 'y'
      • Save data as a CSV file in data folder
    3. get_rechtspraak_metadata
      • save_file: ['y', 'n'], default 'y'
      • dataframe: dataframe, optional
      • Dataframe containing ECLIs to retrieve metadata. Cannot be combined with filename
      • filename: string, optional
      • CSV file containing ECLIs to retrieve metadata. Cannot be combined with dataframe

    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', filename='rechtspraak.csv')

    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') df_metadata = rex.get_rechtspraak_metadata(save_file='n', dataframe=df)

    License

    License: Apache 2.0

    Previously under the MIT License, as of 28/10/2022 this work is licensed under a Apache License, Version 2.0.

    Apache License, Version 2.0
    
    Copyright (c) 2022 Maastricht Law & Tech Lab
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
        
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    

    Project details


    Release history Release notifications | RSS feed

    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

    If you're not sure about the file name format, learn more about wheel file names.

    rechtspraak_extractor-1.0.37-py3-none-any.whl (9.2 kB view details)

    Uploaded Python 3

    File details

    Details for the file rechtspraak_extractor-1.0.37-py3-none-any.whl.

    File metadata

    • Download URL: rechtspraak_extractor-1.0.37-py3-none-any.whl
    • Upload date:
    • Size: 9.2 kB
    • Tags: Python 3
    • Uploaded using Trusted Publishing? No
    • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

    File hashes

    Hashes for rechtspraak_extractor-1.0.37-py3-none-any.whl
    Algorithm Hash digest
    SHA256 64b2c7c6ca4255c5cf8fb0bd6b3c28c4813ccf0d587491c0d76df216795ca260
    MD5 6615ac1116b8a7070bdd5d1e59ba6c32
    BLAKE2b-256 e230a973c598edf1c475b85ac036ae4b22811fcbd48e0ea3e3cff2f3c13ea67c

    See more details on using hashes here.

    Supported by

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