skip to navigation
skip to content

Not Logged In

youplay 0.1

Extract who's and what's playing - artist(s) and track(s) - from a YouTube music video.

Extract who’s and what’s playing - artist(s) and track(s) - from a YouTube music video, enhancing the YouTube Data API V3.

#!/usr/bin/env python

import youplay

(artists, tracks) = youplay.extract(‘0UjsXo9l6I8’)

print ‘%s - %s’ %(‘, ‘.join([artist.name for artist in artists]), tracks[0].name)

(artists, tracks) = youplay.extract(‘c-_vFlDBB8A’)

print ‘%s - %s’ %(artists[0].name, tracks[0].name)

Note that your Google API key must be set as an environment variable: YOUPLAY_GOOGLE_KEY If you don’t have a key, register at <https://code.google.com/apis/console/> and register for the YouTube Data API v3 and the Freebase API.

Contact, infos, related hacks: <http://apassant.net> and <http://mdg.io>

 
File Type Py Version Uploaded on Size
youplay-0.1.tar.gz (md5) Source 2014-06-19 5KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 9 downloads in the last week
  • 70 downloads in the last month