Created
May 24, 2013 23:35
-
-
Save sillage/5647220 to your computer and use it in GitHub Desktop.
Get all Magic card pictures from gatherer.wizards.com (format:number-title.jpg)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for n in {1..4980} | |
do curl -s "http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=${n}&type=card" > "${n}-$(hxextract title http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=$n | grep -v title | sed 's/^.\(.*\).\{35\}$/\1/').jpg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment