Skip to content

Instantly share code, notes, and snippets.

@adidahiya
Created February 27, 2019 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adidahiya/957210094ded44ecf7c159a9de487275 to your computer and use it in GitHub Desktop.
Save adidahiya/957210094ded44ecf7c159a9de487275 to your computer and use it in GitHub Desktop.
Download tarot card scan images
# wands, cups, swords, pentacles
for suit in "wa" "cu" "sw" "pe"; do
# ace, 1-10, page, knight, queen, king
for i in "ac" "02" "03" "04" "05" "06" "07" "08" "09" "10" "pa" "kn" "qu" "ki"; do
filename=$suit$i.jpg
if [ ! -e ./$filename ]; then
wget "http://www.sacred-texts.com/tarot/pkt/img/$filename"
fi
done
done
# major arcana
for i in "00" "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21"; do
filename=ar$i.jpg
if [ ! -e ./$filename ]; then
wget "http://www.sacred-texts.com/tarot/pkt/img/$filename"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment