Library for extracting rechtspraak data
Project description
Rechtspraak extractor
This library contains two functions to get rechtspraak data and metadata from the API.
Contributors
Bogdan Covrig |
maxin-e |
Pedro V |
MarionMeyers |
Kody Moodley |
Jasper Snel |
gijsvd |
How to install?
pip install rechtspraak_extractor
What are the functions?
- get_rechtspraak Gets all the ECLIs and saves them in the CSV file or in-memory
- get_rechtspraak_metadata 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?
- 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.
- 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
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
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
Close
Hashes for rechtspraak_extractor-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cccc284336b01cb250990eaff966ac71a30b58c1ea8154ab2dd43fb7faf4182a |
|
MD5 | c1ae852fb8cfc97fa8233f2c922b3b87 |
|
BLAKE2b-256 | 665ffee10c581a61823ca73afe45bee82322e42b4a5d55c561c7356d17ebe4ae |