1
我想獲取YouTube頻道中的所有視頻。有沒有辦法做到這一點?可以與分頁,但我看不到任何分頁(不能使用Ajax)。我可以使用PHP獲取網址。如何查看YouTube頻道中的所有視頻?
我想獲取YouTube頻道中的所有視頻。有沒有辦法做到這一點?可以與分頁,但我看不到任何分頁(不能使用Ajax)。我可以使用PHP獲取網址。如何查看YouTube頻道中的所有視頻?
請參閱Developers Guide | Videos uploaded by a specific user。
例如,以下代碼檢索$ userName上傳的視頻列表。你必須page through the results。
function getAndPrintUserUploads($userName)
{
$yt = new Zend_Gdata_YouTube();
$yt->setMajorProtocolVersion(2);
printVideoFeed($yt->getuserUploads($userName));
}
默認情況下,這將只返回20個結果。要返回不同數量的結果,請使用[this](http://stackoverflow.com/a/2453808)。 – machineaddict 2014-01-16 23:48:26