このコードが機能するYouTubeビデオを取得します。
<?php
$feedURL = "http://gdata.youtube.com/feeds/api/users/".$user."/uploads?max-results=20";
$sxml = simplexml_load_file($feedURL);
$i=0;
foreach ($sxml->entry as $entry) {
$media = $entry->children('media', true);
$watch = (string)$media->group->player->attributes()->url;
$url = clear($watch);
//..............................
?>
しかし、ユーザーはYouTubeを禁止され、空白のページが表示されます
User account suspended
http://gdata.youtube.com/feeds/api/users/MonsterJamVEVO/uploads?max-results=5
テキストの取得方法(ユーザーアカウント停止中) タグがないため。ありがとう。