The image data is acquired from this repo..
const checkboxes = document.querySelectorAll('input[type="checkbox"]');
let urls = [];
checkboxes.forEach((checkbox) => {
urls.push(checkbox.value);
});
copy(urls);
For each release, copy the above piece of JS code in your
browser console. This will
directly copy all the links to the images to your clipboard. Then simply paste
the contents of your clipboard in a all_participants_urls.txt
file. Now,
suppose you have a list of participants you want to work with, use grep
to
extract the URLs from the above file now and wget
to directly download the
tarballs locally.
#!/bin/bash
rm -f ./not_found.txt
SUBEJCT_LIST=(
NDARUD306BB0
NDARPF179GNV
NDARPF395NV5
NDARXV034WE0
NDARRC190NKB
)
for sub in "${SUBJECT_LIST[@]}"; do
url=$(grep ${sub} ./all_participant_urls.txt)
if [ -z "${url}" ]; then
echo $sub >> not_found.txt
else
# Download the tarball using `wget`.
wget -c ${url//\"/}
fi
done