php应用xpath抽取网页超链接
程序员文章站
2022-05-11 15:35:52
...
php使用xpath抽取网页超链接
loadHTML($html);$xpath=new DOMXpath($doc);foreach($xpath->query([email protected]') as $node){ $link = $node->nodeValue; echo $link . "\n";}?>
相关文章
相关视频