Scratching an itch - Magic The Gathering card info
Scratching an itch by building a quick tool to look up Magic The Gathering card information.
Well over 10 years ago I bought a box set of Magic The Gathering (MTG) cards.

Hooked!
Since then we’ve been fans of the game of endless possibilities and ever changing scope and interest, and almost regulars at our local MTG store, Fan Boy Three on Newton St in Manchester.
So to educate myself in all thing Magic, I turned to MTG’s official website, Wizards of the Coast’s The Multiverse, and in particular, to their incredibly prolific set of column authors on the Daily MTG. More articleson design, deck construction, strategy and match reports than you could shake a Planeswalker card at.
But while I read a lot, the majority of it is on paper, in the bath, on the train, and

So I had an itch to scratch. What I wanted was an accompanying printout of the cards mentioned in any given Daily MTG article. So when the author referred to Hedron Crab, Baloth Woodcrasher or Oran-Rief, the Vastwood I would know what they were talking about.
I decided to use Google App Engine, and have my Python HTTP responder in the cloud. I created a very simple app “mtgcardinfo”, part of my Github-hosted scratchpad area gae-qmacro. Given the URL of an MTG article, the app uses urlfetch() to go and get it, parses out the card names, and produces an HTML response with a whole load of image references. Luckily the card detail popups in the articles are powered by Javascript and are great indicators of card names for anyone who cares to wield a regex to look for them.
And of course to glue it all together, I used a bookmarklet, so I could jump to the list of cards while directly in the article.
So if you’re interested, have a go: http://qmacro.appspot.com/mtgcardinfo.
The combination of App Engine, Python, HTTP and Javascript is rapidly becoming my new Swiss Army Knife of choice in the web-based online world. And the best thing? I’m teaching Joseph this stuff, and not only is he incredibly good at it, he loves it!