Home  >  Article  >  Backend Development  >  PHP采集企业信息网站的具体方法解决办法

PHP采集企业信息网站的具体方法解决办法

WBOY
WBOYOriginal
2016-06-13 13:34:59765browse

PHP采集企业信息网站的具体方法
想搞个小程序,采集某企业信息网站的内容,经处理后在我的网站上显示,不想逐条信息输入。
我是想将DIV ID截出内容再逐条存入数据库,但同一页面有很多DIV ID是相同值的,我不知道怎样截了。
哪位能讲一个好的办法吗?
例如

公司1
......
公司2
......
公司3
......
公司4
......
ID相同,我不知道怎 样截取

------解决方案--------------------
PHP code
(.*)/Usi',$str,$matches);
print_r($matches); 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn