请教一下把一个网页的某部分内容抓取出来是怎么实现的...没有思路....
比如说我想抓取mmcfood.1x.net里面的表格...其他的都不要..
------解决方案--------------------
php code$ch = curl_init();curl_setopt($ch, curlopt_url, 'http://mmcfood.1x.net/');curl_setopt($ch, curlopt_returntransfer, 1);curl_setopt($ch, curlopt_useragent, 'mozilla/5.0 (windows; u; windows nt 6.1; en-us; rv:1.9.1.2) gecko/20090729 firefox/3.5.2 gtb5');$htmls = curl_exec($ch);curl_close($ch);preg_match(#
]*)>(.*?)
#is, $htmls, $matches);echo $matches[0];
