You are viewing a single comment's thread.

view the rest of the comments →

Phivex ago

Someone else posted a website with all of the images of the cards, so here's bash code to download all of the cards they have shown.

Instuctions:

  1. Save it as download_cards.sh
  2. Run chown 750 download_cards.sh
  3. Run ./download_cards.sh

Bash Code:

#-----------------
# Variables
#-----------------
dir_target_folder="Illuminati_Card_Game-1995"
file_card_list="card_list.txt"
file_download_log="card_downloads.log"
file_hashes="card_hashes.txt"

path_card_list="$dir_target_folder/$file_card_list"
path_download_log="$dir_target_folder/$file_download_log"
# Website from someone elses comment where all card images are stored
url_target_server="https://www.muslimsandtheworld.com/wp-content/uploads/2015/09/"

#-----------
# Main
#-----------
mkdir $dir_target_folder
if [ -d $dir_target_folder ]
then

    echo "-Generating list of cards"
    # Generate list of card filenames from website
    for j in {001..412}
    do 
        echo "Illuminati-Card-Game-$j.png" >> $path_card_list
    done

    echo "-Downloading files"
    # Download cards
    wget -B $url_target_server -i $path_card_list -a $path_download_log -nv

    cd $dir_target_folder
    
    echo "-Generating hashes"
    # Generate hash file
    for j in $(find . -type f -iname "*.png" | sort)
    do
        sha256sum ${j:2} >> $path_hashes
    done

    echo "-Creating archive"
    find . -type f -name $file_hashes -o -name $file_download_log -o -iname "*.png" | tar -czf $dir_target_folder.tgz --files-from -

    echo "-FINISHED-"
else
    echo "- ERROR - Target directory '$dir_target_folder' does not exist and could not be created!"
fi

frankenmine ago

It would be nice if someone downloaded the cards, zipped them up, and put the zip on catbox.moe or something. Not everyone uses Linux.

lost_old_account ago

WIN+R -> bash

Most distributions of windows have bash now, right?

Also, not everyone uses Linux, but everyone should. (I use mac, which is the next best thing if you need your pc for dev work)