A client for Nerdpool-Api
Project description
nerdpool-client
A Python client for downloading data from https://nerdpool-api.acdh-dev.oeaw.ac.at
install
pip install nerdpool_client
usage
list data set titles
from nerdpool_client import NerdPoolClient
client = NerdPoolClient()
print(client.data_sets)
# ['RTA', 'RITA', 'MRP', 'Chronik Aldersbach', 'DIPKO']
download samples as .jsonl file
- go to nerdpool-api and create/filter you'r prefered data sample; e.g. all samples from MRP:
from nerdpool_client import NerdPoolClient
url = "https://nerdpool-api.acdh-dev.oeaw.ac.at/api/ner-sample/?format=json&ner_ent_type__contains=&ner_source__title=MRP"
client = NerdPoolClient()
client.dump_to_jsonl(url)
# 'out.jsonl'
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
nerdpool-client-1.0.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for nerdpool_client-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11be22a6afb61c518c1331b325b840961136e2e9e0ca028df440d5eb0b705b4b |
|
MD5 | c03db23281be55d16a61b082ba5bb370 |
|
BLAKE2b-256 | 4d9bcf2c84000724c5da86341f95c2baca7dcc8fc6c77b26610e0454514822c3 |