我想从不同网站获取静态数据(提供的URL和元素名称),最简单的方法是什么?从不同网站获取数据的最简单方法
www.address /用品/抓斗该
<html>
(...)
<article id="#article-121">
<h1>Header</h1>
<p>Contents</p>
</article>
(...)
</html>
的index.php
/* Grab "#article-121" from www.address/articles/grab-this */
<article id="#article-121">
<h1>Header</h1>
<p>Contents</p>
</article>
/* Close the connection */
重复搜索解析HTML的PHP – dynamic
的具体实施方法,可能重复解析HTML与PHP](http://stackoverflow.com/questions/3577641/best-methods-to-parse-html-with-php) – Gordon