Skip to main content

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

Project description

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>

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for youplay, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size youplay-0.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page