See this add-on on the kodi.tv showcase
Packed for XBMC from https://github.com/kennethreitz/requests