本帖最后由 qqsd126 于 2009-12-13 13:44:22 编辑

解决方案 »

  1.   

    回楼上的得到商品标题http://taoke.alimama.com/spreader/search_auction.htm?c=&mid=1&q=aaa&cat=0&od=1&conts=&conte=&hs=&he=&cs=&ce=&rs=&re=&loc= 这里是图
      

  2.   

    直接用 file_get_contents 可能还是得不到数据你应该用 fsockopen 先抓取内容然后再用正则匹配出来
      

  3.   

    <?php 
    $url="http://taoke.alimama.com/spreader/search_auction.htm?c=&mid=1&q=aaa&cat=0&od=1&conts=&conte=&hs=&he=&cs=&ce=&rs=&re=&loc=";
    $fp = file_get_contents("$url");
    preg_match_all ("#\<(a)\s*(class=)\"(blue)\_(14)\"[^>]*\>[^<]*\<\/(a)\>#",$fp,$titleList, PREG_PATTERN_ORDER);
    print_r($titleList);
    ?>遍历去掉html标签就ok了
      

  4.   

    用file_get_contents超时会抓不到东西, 用curl吧, 抓了之后用九楼的正则抓内容
      

  5.   

    用snoopy抓很好的一个集成类库网上都有说明(注:英文说明呵呵)要有一定的正则基础
      

  6.   

    http://www.phpjs.cn/article_100.html  可以参考下这个