Parsing 解析youtube提要输出
您好,从中检索值时遇到问题。 到目前为止,我一直在使用这行代码Parsing 解析youtube提要输出,parsing,xml-parsing,Parsing,Xml Parsing,您好,从中检索值时遇到问题。 到目前为止,我一直在使用这行代码 $str = "https://gdata.youtube.com/feeds/api/videos/VdbUBcOCU_A"; $blow =(explode("'",$str)); print_r($blow); 如果您能帮助我们从链接中检索值,我们将不胜感激。谢谢。如果我说的没错,您正在使用PHP 建议您在以下位置使用Google PHP客户端库: 有关您的情况,请参见 你用什么编程语言?你想得到什
$str = "https://gdata.youtube.com/feeds/api/videos/VdbUBcOCU_A";
$blow =(explode("'",$str));
print_r($blow);
如果您能帮助我们从链接中检索值,我们将不胜感激。谢谢。如果我说的没错,您正在使用PHP 建议您在以下位置使用Google PHP客户端库: 有关您的情况,请参见
你用什么编程语言?你想得到什么?我觉得像PHP。
$videoEntry = $yt->getVideoEntry('VdbUBcOCU_A');
printVideoEntry($videoEntry);
function printVideoEntry($videoEntry)
{
echo 'Video: ' . $videoEntry->getVideoTitle() . "\n";
echo 'Video ID: ' . $videoEntry->getVideoId() . "\n";
echo 'Updated: ' . $videoEntry->getUpdated() . "\n";
}