【发布时间】:2014-07-17 15:22:14
【问题描述】:
我尝试使用类 PHP Simple HTML DOM Parser 按类名提取图像,但我无法得到这个
我在这个类中使用这个:
$file=file_get_contents("https://play.google.com/store/apps/details?id=com.cleanmaster.mguard&hl=en");
$html = str_get_html($file);
$html->find('img', 1)->class = 'screenshot';
//$html->find('div[id=hello]', 0)->innertext = 'foo';
echo $html;
但是我不能得到这个我不知道我是否可以用其他类或函数来做到这一点,有可能得到吗? ,谢谢,问候
【问题讨论】:
标签: php parsing html-content-extraction