Table of Contents | ||||
---|---|---|---|---|
|
...
If you want to download a large number of files, we recommend using an API key and the WGET command line tool. These instructions will guide you through the process step by step.
Generate the API key
To generate an API Key, please visit the TERN Account portal at (https://account.tern.org.au) and Sign In. After signing in, follow the steps below.
...
Info |
---|
After generating the API key, copy it (e.g. in Notepad) and store it in a secure place. Note: The API key is only displayed once in the API key Information page. For security reasons, it will not be shown or accessible afterwards. If you lose your API key, you need to generate a new one. |
Install WGET
To download the data in bulk, you will be using the wget command line tool in PowerShell.
...
If WGET is not installed, you will see an error message. This means that WGET is not already installed on your computer.
There are instructions about how to install WGET on the internet, for example:
For Mac https://formulae.brew.sh/formula/wget. Please note that you will need to have Homebrew installed first. If you don’t, the instructions to install it can be found here: https://brew.sh/
After installation, restart PowerShell (Windows) and check that WGET has been successfully installed by typing wget.exe -V (or wget --version if you are on a Mac). You should have an output showing the version of WGET installed.
Change directory
You can select where the data will be saved on your computer by changing the directory in PowerShell. If you are downloading a large amount of data, you may want to use an external hard drive.
...
In this example, I am using the Document folder on my laptop.
...
Figure 8
Downloading the data
Copy the following command into a text editor, e.g. Notepad. It will be easier to edit it and save it for future reference.
Note: if you are on Windows use wget.exe. If you are on Mac use wget.
...