Package org.osm.jsoup.nodes

Examples of org.osm.jsoup.nodes.Document.title()


      }
    } else {
      // 链接地址不在支持的列表中时返回原链接地址以及链接的页面标题
      Document doc = getURLContent(url);
      video = new Video();
      video.setTitle(doc.title());
      video.setPageUrl(url);
    }

    return video;
  }
View Full Code Here


    Document doc = getURLContent(url);

    /**
     * 视频标题
     */
    String title = doc.title().split("-")[0].trim();

    /**
     * 获取视频缩略图
     */
    String pic = getElementAttrById(doc, "s_sina", "href");
View Full Code Here

    /**
     * 视频标题
     */
    String title = "";
    try {
      title = doc.title().split("_")[0].trim();
    } catch (Exception e) {
    }

    /**
     * 获取视频地址
 
View Full Code Here

    Document doc = getURLContent(url);

    /**
     * 获取视频标题
     */
    String title = doc.title().split(" ")[0].trim();

    /**
     * 获取视频地址
     */
    String flash = getElementAttrById(doc, "outSideSwfCode", "value");
View Full Code Here

    Document doc = getURLContent(url);

    /**
     * 视频标题
     */
    String title = doc.title().split("-")[0].trim();

    /**
     * 获取视频缩略图
     */
    Element picEt = doc.getElementsByClass("summary").first();
View Full Code Here

    Document doc = getURLContent(url);

    /**
     * 视频标题
     */
    String title = doc.title().split("-")[0].trim();

    /**
     * 视频简介
     */
    String summary = doc.select(".vIntro.clear > p").text();
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.