Python pizza status

dominospython_20080516.jpg

Nothing goes better with some Python hacking than a little pizza. Nick Jensen couldn't wait for his pizza to arrive to begin hacking, so he spent the 30 minute wait-time writing a Python script to track the pie's progress:

I discovered an interesting XML feed the other day when I ordered a pizza from dominos. After seeing a dumb commercial about what some idiots do in their 30 minute pizza-waiting time, I remembered hearing something about being able to "track" your pizza online. So what did I do during my 30 minutes you ask? I went on over to dominos website to check out this amazing tracking device. It turns out to be just a flash app hooked up to an XML feed and Tamper Data revealed it was coming from here.

The details and the Dominos python script are below. Suffice it to say that you can pull an XML status on your Dominos order by hitting http://trkweb.dominos.com/orderstorage/GetTrackerData?Phone=phonenumber (where phonenumber is your 10 digits). You can easily parse this from other languages if you're not the Python type.

You've got 30 minutes... to write a python script
dominos.py

Posted by Jason Striegel | May 16, 2008 08:40 PM
Life | Permalink | Comments (3) Bookmark and Share

Recent Entries

Comments

Newest comments listed first.

Posted by: wackyvorlon.myopenid.com on May 18, 2008 at 12:47 PM

Authentication?

So... there's no authentication? I can put in any phone number, and find out whether they're expecting a pizza delivery?


Posted by: Ge64 on May 20, 2008 at 6:22 AM

Saw randomly this on the public timeline in Twitter, that is just awesome. Makes me want to live in the states so i can use it!


Posted by: anon on May 23, 2008 at 9:16 PM

new commercial

As amusing as I must admit I found the tattoo spot, I definitely think this was a nice use of your thirty.


Leave a comment



Bloggers

Welcome to the Hacks Blog!

Brian Jepson.Brian Jepson


Jason Striegel.Jason Striegel


Philip Torrone.Phillip Torrone



See all of the books in the Hacks Series!
Advertise here.

Recent Posts

www.flickr.com
photos in Hacks More photos in Hacks