Posts Tagged restful

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*
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 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.

Very cool!


, ,

Leave a comment