从雅虎视频中提取元标签

extraxcting meta tags from yahoo videos

$url="https://screen.yahoo.com/popular/ice-t-voiceover-every-cartoon-182055140.html";
$tags = get_meta_tags($url);
print_r($tags);

结果是

Array ( [description] => #YahooLive is proud to present this exclusive concert from Los Lonely Boys on Friday, July 31, 2015. Catch the show live or tune in for a full 24 hour rebroadcast. [application-name] => Yahoo Screen [msapplication-tilecolor] => #6e329d [p:domain_verify] => 423db4d61a29a437435ff00f86aa220e ) 

我无法获取所有标签,包括 og 谁能帮忙?

答案在文档中:

http://php.net/manual/en/function.get-meta-tags.php

Note:

Only meta tags with name attributes will be parsed. Quotes are not required.

要获取所有元标记,您可能需要自己解析 HTML。您可以使用像 Simple HTML DOM 或类似的解析器。