Experimental project

This is a sandbox project, which contains experimental code for developer use only.

A youtube parser is a small utility that
use The YouTube Data API to search for YouTube videos and retrieve
media data.
Rather, youtube parser allows to get
information about youtube video in PHP array format from http://gdata.youtube.com/feeds/api/videos/%video_key% .
youtube_parser_get_array($youtube_key)

Having the PHP array module provides:

media author
youtube_parser_get_author($youtube_key),
media duration in "H:i:s" date format
youtube_parser_get_duration($youtube_key),
media title
youtube_parser_get_title($youtube_key),
it's google average rating
youtube_parser_get_google_average_raiting($youtube_key),
media views count
youtube_parser_get_views_count($youtube_key),
media favorite count
youtube_parser_get_favoritecount($youtube_key),
media description
youtube_parser_get_description($youtube_key).

Also we can get video key from URL
youtube_parser_get_video_key($url)

A link to project page: http://drupal.org/sandbox/svipsa/1327088
A link to git repository: git clone --branch 7.x-1.x svipsa@git.drupal.org:sandbox/svipsa/1327088.git

Project information

  • Module categories: Media
  • Created by svipsa on , updated