页面抓取!
我想要抓取http://www.56110.cn/goods/list_p1.html?goodtype=1这个页面下的货运信息,如何把每条信息中的详细信息都抓取到(就是查看里面的信息),帮忙看看,谢谢!
——解决方案——————–
- PHP code
<?php $str = file_get_contents("http://www.56110.cn/goods/list_p1.html?goodtype=1");preg_match_all("/\";foreach ($match[1] as $val){ $url= 'http://www.56110.cn'.$val; $str =本@文来源[email protected]搞@^&代*@码网(搞代gaodaima码file_get_contents($url); echo $str; break;}?>
------解决方案--------------------