This script is a tiny batch wrapper for (blinry/threadcat
). The download.sh script takes one fedi post url as a command line argument and than creates a directory named after base64 encoded post url to call threadcat inside of this directory. then it jumps back into the main directory and closes.batch.sh looks for a bookmarks.csv file inside the main directory and then call download.sh for each post. You can view the orignal file names by piping ls through base64 -d . NOTE: THIS BLOGPOST and the .sh scripts IS LICENSED UNDER: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International

download.sh

!#/bin/sh
echo processing $@
mkdir $(echo $@ | base64)
cd $(echo $@|base64)
~/.cargo/bin/threadcat $(echo $@)
cd ..

batch.sh

!#/bin/sh/
for n in $(cat bookmarks.csv|grep http);
do
   ./download.sh $n
done
find . -empty -type d -delete