- Author: Volker Hoffmann [email protected]
- Linux/Mac
- Install Python (Anaconda/Miniconda, Enthought, or System)
- Install PyArango (
pip install pyarango
)
- Install dependencies
- Edit your query as appropriate (
query.aql
) - Open
query.py
, find theconnect_to_database()
function, make sure you're connecting to the correct database and port. - Make sure you have a list of keywords IDs you want to query for. For example, you could have file
keywords.json
looking like:
[
{ "key": "3317658057" },
{ "key": "12219921" }
]
- Call the script
python ./query.py --keyfile keywords.json
- If you know your queries take a while (or you run a lot of queries), edit
query.sh
as appropriate, call it in a screen session, and go home for the night. - For each keyword ID (for example, 123) you query, the script will write a file
result_123.json
.