SOCH Download CLI lets you do multithreaded batch downloads of Swedish Open Cultural Heritage(K-Samsök) records for offline processing and analytics.
Project description
SOCH Download CLI
SOCH Download CLI lets you do multithreaded batch downloads of Swedish Open Cultural Heritage (K-Samsök) records for offline processing and analytics.
Prerequirements
- Python >=3.4 and PIP
Installing
pip install soch-download
Usage Examples
Heads up: This program might use all the systems available CPUs.
Download records based on a SOCH search query (Text, CQL, indexes, etc):
soch-download --action=query --query=thumbnailExists=j --outdir=path/to/target/directory
Download records from an specific institution:
soch-download --action=institution --institution=raa --outdir=path/to/target/directory
Download records using a predefined action/query:
soch-download --action=all --outdir=path/to/target/directory
soch-download --action=geodata-exists --outdir=path/to/target/directory
Unpacking
The download actions by default downloads large XML files containing up to 500 RDFs each, after such a download you can use the unpack
argument to convert all those files into individual RDF files:
soch-download --unpack=path/to/xml/files --outdir=path/to/target/directory
Misc
List all available parameters and actions:
soch-download --help
Use your own SOCH API key:
soch-download --action=query --query=itemKeyWord=hus --outdir=path/to/target/directory --key=your-api-key
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for soch_download-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e62cde347976d627e982c06d560f489c2fcd7bf979fe503f91b1b10f5deaee |
|
MD5 | cc4795bd9180ab2eb7c60b34e304cfe1 |
|
BLAKE2b-256 | e49767828f687f81d851a0cea2436deffa086a48f596e92dc057eeb1d5e582b1 |