Library for extracting rechtspraak citations via LIDO
Project description
Rechtspraak citations
This library contains a function that aqcuires citation data for Rechtspraak cases using the LIDO.
Version
Python 3.9
Contributors
Piotr Lewandowski |
shashankmc |
gijsvd |
How to install?
pip install rechtspraak_citations_extractor
What are the functions?
get_citations
Gets all the data about case law citing/being cited and the legislations cited from the cases
in passed on DataFrame of case metadata. Requires a valid DataFrame object with a column titled 'ecli'. Returns the same Dataframe object,
with 3 additional columns containing JSON strings of citation information.
What are the parameters?
- get_citations(dataframe = None, username = '', password = '', threads = 2) Parameters:
- dataframe: Pandas DataFrame object, required A Dataframe object, which must have a column titled 'ecli'. The code extracts citations for each separate ECLI in the column. A Dataframe with Rechtspraak data can be aqcuired via the rechtspraak extractor - https://pypi.org/project/rechtspraak-extractor
- username: string, required, default '' The username that together with the password can be used to log into LIDO.
- password: string, required, default '' The password that together with the username can be used to log into LIDO.
- threads: int, optional, default 1 Option for multi-threading of LiDO requests - not recommended to go above 2, as LiDO breaks connections when overwhelmed.
Default: None
Examples
import rechtspraak_extractor as rex
import rechtspraak_citations_extractor as rex_citations
-----------------------------------------------------------------------------------------------------------------------
# To get the rechtspraak data in a dataframe:
df = rex.get_rechtspraak(max_ecli=100, sd='2022-08-01', save_file='y') # Gets 100 ECLIs from 1st August 2022
df = get_rechtspraak_metadata(save_file='n',dataframe=df)
# To get the citations:
df_with_citaitons = rex_citations.get_citations(df,'username','password')
License
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 Distribution
File details
Details for the file rechtspraak_citations_extractor-1.0.13.tar.gz
.
File metadata
- Download URL: rechtspraak_citations_extractor-1.0.13.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42ed6add79a27409f516115e4be4617d7b04cbfae8ca4bd8a58a51a3108954f |
|
MD5 | 01818d218abb45562d077a135604f01d |
|
BLAKE2b-256 | df50cb27d85324bd4a823bd59eff2cf746bab14ea1f563e2f47017f8a068845d |