Skip to content

fragdenstaat/docimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Document importer for filingcabinet from mmmeta

The docimport.py synchronizes a mmmeta database and batch-downloads documents into an output directory and places JSON meta data next to it. After every batch it calls an import command that on success marks the batch as imported and clears the output directory.

Install

python3 -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt

Run

# python docimport.py <collection-slug> <s3-bucket> <s3-dir> <output-dir> <import-command>

Example call:

python docimport.py kleine-anfragen dokukratie-dev /var/www/dokukratie/docs/ "sudo -u fragdenstaat_de /var/www/fragdenstaat.de/scripts/manage.sh import_documents /var/www/dokukratie/docs/"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages