bitlove-pythonA simple client for the bitlove.org API | |
Download |
bitlove-python Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Stefan Kogl
- Publisher web site:
- http://skoegl.net
bitlove-python Tags
bitlove-python Description
bitlove-python is a very simple Python client for the bitlove.org API.Usageimport bitlove# your User-Agent stringMY_USER_AGENT = 'mycoolapp/1.0 (http://example.com)'# some enclosure URLs of media filesurls = client = bitlove.BitloveClient(MY_USER_AGENT)resp = client.get_by_enclosures(urls)info0 = resp.get(urls)# all available attributes of info0print dir(info0)# we use the first available sourcesource0 = info0.sources# and inspect its available attributes as wellprint dir(source0)# get the torrent URLprint source0.torrent# http://bitlove.org/astro/bitlove-show/bl001-introduction.webm.torrent# get the Flattr linkprint source0.item_payment# http://flattr.com/thing/662636/Torrent-for-BL001-Introduction-on-Bitlove# get the titleprint source0.item_title# The Bitlove Home Show# for the response format see https://bitlove.org/help/podcaster/apiProduct's homepage
bitlove-python Related Software