Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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([ 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 <> and register for the YouTube Data API v3 and the Freebase API.

Contact, infos, related hacks: <> and <>

Release History

This version
History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(5.2 kB) Copy SHA256 Hash SHA256
Source Jun 19, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting