php 解析dom,可用作抓取工具
摘要:
// Create DOM from URL or file$html = file_get_html('http://www.google.com/');// Find all images foreach($html->find('img') as $element) echo $element->src . '<br>';// Find all links foreach($html->find('a') as $element) echo $element->href . '&l 阅读全文
posted @ 2011-09-06 11:22 windk 阅读(273) 评论(0) 推荐(0)
浙公网安备 33010602011771号