Posts Tagged launchpad

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

, ,

Leave a comment