1.0.1 • Published 7 years ago

rijksarchief-dl v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rijksarchief-dl

Dependency Status devDependency Status npm

A command line tool to download images from the Belgian National Archives

Prerequisites

You'll need to have Node.js and npm installed. This was only tested with npm 5.0.3 and Node.js 8.0.0, but it should work on the latest version.

Table of Contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

$ yarn global add rijksarchief-dl
# or...
$ npm install -g rijksarchief-dl

Usage

Go to search.arch.be and make an account. You'll only be able to browse and view scans if you're logged in.

Use the search functionality to find archives relevant to your search. Make sure to check 'Alleen toegangen met scans' to only show archives with images publicly accessible from the website.

When you've found an archive, browse the available images and open the one you want. You should be able to view the image through some Adobe Flash applet. At this point, copy the url: it should contain a code in the form of XXX_XXXX_XXX_XXXXX_XXX_X_XXXX, this is used to identify and download the correct image.

Example

rijksarchief-dl --url "http://search.arch.be/nl/zoeken-naar-archieven/zoekresultaat/inventaris/rabscan/dao/1/eadid/BE-A0546_005577_006261_FRE/inventarisnr/I626100000001/afbeelding/546_0091_000_00575_000_0_0002.tjp"

Arguments

LongShortDescriptionRequired
--help-hOutput usage informationno
--version-VOutput the version numberno
--url url-uThe url of the imageyes
--scale-factor-sThe scale factor of the image: determines the resolution, the bigger the scale factor, the smaller the image (options: 1,2,4,8,16,32)no (default: 1)
--out-dir-dThe folder in which the image will be savedno (default: working directory)
--save-tiles-tSave the seperate tilesno (default: false)
--open-image-oOpen the image when finishedno (default: true)