Access Launchpad using resty

Today, while my daily reading of Planet Python I found out about resty, a wrapper around curl to simplify accessing Restful webservices.

It’s as easy as

markus@thekorn:/tmp$ . resty
markus@thekorn:/tmp$ resty https://api.edge.launchpad.net/1.0/
https://api.edge.launchpad.net/1.0/*
markus@thekorn:/tmp$ GET /bugs/123456 -H "Accept: application/json" |\
    python -c "import sys, json; print json.load(sys.stdin)[sys.argv[1]]" description
Binary package hint: amarok

One of the podcasts at http://www.touchmusic.org.uk/TouchPod/podcast.xml crashes amarok. The podcast in question is Touch Radio 25. The other episodes I have tried seem to work fine. What happens with #25 is that I get a few hundred ms of sound and then amarok freezes for a little while before evaporating from the desktop altogether.

I don't know whether or not the audio file in question is corrupt, but obviously amarok shouldn't crash even if it is.
markus@thekorn:/tmp$ 

Very cool!

Advertisements

, ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: