本帖最后由 shanxiuwei 于 2012-09-20 16:16:26 编辑

解决方案 »

  1.   

    联系回复3次 不让顶了吧 哈哈  
    推荐你看看 爬虫
    大体上 可以
    public List<Element> getUlElementList(String url){
    Source source=null;
    List<Element> elementList=null;
    try{
    source=new Source(new URL(url));
    elementList=source.getAllElementsByClass("sw-mod-popOfferImgs");
    }catch(MalformedURLException e){
    e.printStackTrace();
    }catch(IOException e){
    e.printStackTrace();
    }


    return elementList;
                            }
    你可以自己断点 看看 elementList里面都是符合条件的  页面源码 
    然后就是根据你自己的 要求 摘取有用的了, 我好长时间不写爬虫。 
    网上也有很多  可以自己下来看看
      

  2.   

    elementList=source.getAllElementsByClass("sw-mod-popOfferImgs");
    这个是 你要的数据 封装在什么位置了 这个是byclass的
    当然 也可以
    List<Element> elementList = source.getAllElements(HTMLElementName.TBODY);
    tr  td  li th  什么都行  主要是看你的
      

  3.   

    爬虫是不是只能获得Html中的内容?