source: main/trunk/model-sites-dev/atea/collect/digital-nz/prepare/README.txt@ 34447

Last change on this file since 34447 was 34447, checked in by davidb, 4 years ago

Key files to 'prepare' an import folder by runing DNZ query for language=mi

File size: 1.4 KB
Line 
1
2# The following was done:
3# 12 Oct 2020
4
5git clone https://github.com/fogonwater/pydnz.git
6
7# If, in the future, working with the latest git clone leads
8# to problems, then a fall-back position is to work with the
9# locally provided tar-ball of the code, that was taken
10# 12 Oct 2020
11
12# Alternative version:
13#
14 tar xvzf pydnz.tar.gz
15
16# Working towards script
17
18
19
20if [ ! -d import ] ; then
21 echo "Making directory: 'import'"
22 mkdir import
23fi
24
25# The needs of the DNZ python scripts seems pretty light
26# The system python3 most recently trialed had all the
27# necessary packages.
28#
29# If need be, virtualenv setup such as
30# virtualenv --python=python3 venv-python3-dnz
31# Combined with (from within 'pydnz):
32# pip install -r requirements.txt
33# should help
34#
35# Note: running 'python setup.py install' in 'pydnz' resulted
36# in SSL errors trying to download from the python/pip
37# repository that seem to be related to a change a while
38# back in python that broke a lot of package installers, and
39# proved to be excessively fussy to resolve, hence the
40# decision to go down the PYTHONPATH path route
41
42
43export PYTHONPATH=`pwd`/pydnz
44
45./dnz-search-language-mi-python3.py
46
47
48# tidy up script
49# rewrite script to key is readin from .in file
50
51# Note: the API returns duplicated dc_identifiers
52
53# Note: At time of writing (12 Oct 2020)
54# working with the /v3/ version of the API
55
56
Note: See TracBrowser for help on using the repository browser.