Package org.jsoup.nodes

Examples of org.jsoup.nodes.Element.child()


      if(tbodys.size()>0){
        Element tbody = tbodys.get(0);
        for(int i=0;i<row;i++){
          tbody.prepend("<tr/>");
          for(int j=0;j<totalColumns;j++){
            tbody.child(0).append("<td/>");
          }
        }
        for(int i=row;i<tbody.children().size();i++){
          Element tr = tbody.child(i);
          for(int j=0;j<column;j++){
View Full Code Here


    List<String> resList = new ArrayList<String>();
    Element tableE = doc.getElementsByClass("group_buy").get(0);
    Elements trs = tableE.getElementsByTag("tr");
    for (int m = 1,len=trs.size();m<len;m++) {
      Element element = trs.get(m);
      if ("public".equals(element.child(0).child(1).attr("class"))) {
        //resList.add("http://caipiao.163.com"+element.child(8).child(1).attr("href"));
        if(onsale){
          resList.add(element.child(8).child(0).attr("lotoorder"));
        }else{
          String href = element.child(7).child(0).attr("href");
View Full Code Here

    for (int m = 1,len=trs.size();m<len;m++) {
      Element element = trs.get(m);
      if ("public".equals(element.child(0).child(1).attr("class"))) {
        //resList.add("http://caipiao.163.com"+element.child(8).child(1).attr("href"));
        if(onsale){
          resList.add(element.child(8).child(0).attr("lotoorder"));
        }else{
          String href = element.child(7).child(0).attr("href");
          resList.add(href.substring(href.indexOf("_")+1, href.indexOf(".")));
        }
      }
View Full Code Here

      if ("public".equals(element.child(0).child(1).attr("class"))) {
        //resList.add("http://caipiao.163.com"+element.child(8).child(1).attr("href"));
        if(onsale){
          resList.add(element.child(8).child(0).attr("lotoorder"));
        }else{
          String href = element.child(7).child(0).attr("href");
          resList.add(href.substring(href.indexOf("_")+1, href.indexOf(".")));
        }
      }
    }
    if (linkPage%10==0) {
View Full Code Here

      Elements trs = tableE.getElementsByTag("tr");
      for (int m = 1,len=trs.size();m<len;m++) {
        Element element = trs.get(m);
        String b = "";
       
        Elements spansb = element.child(1).getElementsByClass("c_ba2636");
        Iterator<Element> bIterator = spansb.iterator();
        while(bIterator.hasNext()){
          Element element2 = bIterator.next();
          if(!"span".equals(element2.tagName())){
            //spansb.remove(element2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.