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 1000 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
Target a custom SOCH API endpoint:
soch-download --action=query --query=itemKeyWord=hus --outdir=path/to/target/directory --endpoint=http://lx-ra-ksam2.raa.se:8080/
Metadata
Release files for soch-download 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soch-download-1.1.0.tar.gz | 4.6 kB | Without provenance | Details for soch-download-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| soch_download-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for soch_download-1.1.0-py3-none-any.whl |
Total release size: 10.0 kB
Release files / soch-download-1.1.0.tar.gz
| Download URL | soch-download-1.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3673d7e560946def6c4a094f018400c76b9619e122464091821cc8cae3a5da8
|
|
BLAKE2b-256 checksum How to use checksums |
d534e6947792e10cd6af60cb3af42b9142d928abe437b242cbdb602644061d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Release files / soch_download-1.1.0-py3-none-any.whl
| Download URL | soch_download-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cf1bbef9607c7f0ff65d4cc5bd749dad3af0046ddb031d8e4d206c8adf8de0c
|
|
BLAKE2b-256 checksum How to use checksums |
f3838740f28d2e12b3b310c537e27a8d80ec4f478cb350b330fc7229b28fdc0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Security for soch-download 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.