【发布时间】:2015-10-24 00:55:14
【问题描述】:
$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 在内的所有标签,谁能帮忙?
【问题讨论】:
-
请使用浏览器的“查看页面源代码”功能,找到
og标记(例如),然后将围绕它的html 添加到您的问题中。祝你好运
标签: php curl web-scraping meta