Package org.osm.jsoup.nodes

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


    /**
     * 视频简介
     */
    String summary = "";
    try {
      summary = doc.select("meta[name=Description]").attr("content");
    } catch (Exception e) {
    }
    /**
     * 获取视频时间
     */
 
View Full Code Here


    /**
     * 视频简介
     */
    String summary = "";
    try {
      summary = doc.select("meta[name=Description]").attr("content");

    } catch (Exception e) {
    }
    /**
     * 获取视频时间
 
View Full Code Here

    }

    /**
     * 视频简介
     */
    String summary = doc.select("meta[name=Description]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
View Full Code Here

    String pic = picEt.getElementsByTag("img").first().attr("src");

    /**
     * 视频简介
     */
    String summary = doc.select("meta[name=Description]").attr("content");

    /**
     * 获取视频地址
     */
    Element flashEt = doc.getElementById("video-share-code");
View Full Code Here

    /**
     * 获取视频地址
     */
    Element flashEt = doc.getElementById("video-share-code");
    doc = Jsoup.parse(flashEt.attr("value"));
    String flash = doc.select("embed").attr("src");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
View Full Code Here

    String flash = "http://player.56.com" + url.substring(url.lastIndexOf("/"), url.lastIndexOf(".html")) + ".swf";

    /**
     * 视频简介
     */
    String summary = doc.select("meta[name=Description]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
View Full Code Here

    String title = doc.title().split("-")[0].trim();

    /**
     * 视频简介
     */
    String summary = doc.select(".vIntro.clear > p").text();

    /**
     * 视频缩略图
     */
    String thumbnail = doc.getElementById("thumbnail").attr("src");
View Full Code Here

    String[] params = content.split(",");

    /**
     * 视频标题
     */
    String title = doc.select(".playtitle > h1").text();

    /**
     * 视频简介
     */
    String summary = doc.getElementById("full_des").text();
View Full Code Here

    String summary = doc.getElementById("videoContent").select("span").first().html();

    /**
     * 视频缩略图
     */
    String thumbnail = doc.select("meta[property=og:image]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(thumbnail);
    video.setFlashUrl(flash);
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.