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.

Source Distribution

youplay-0.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file youplay-0.1.tar.gz.

File metadata

  • Download URL: youplay-0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for youplay-0.1.tar.gz
Algorithm Hash digest
SHA256 c019fbc86643247c691eda384df7edbbbd21b289f8ff4c9a3794dea10f272ba6
MD5 0e66b2899ad6bc1ddc23a91a5af0da08
BLAKE2b-256 a353488e50d90edaf4f32084894ca72693e858ad4b91017b686d17c8664f2d43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page