Package org.osm.jsoup.nodes

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


   * @param url
   *            视频URL
   */
  public static Video getTudouPlayListVideo(String url) throws Exception {
    Document doc = getURLContent(url);
    String content = doc.html();

    int beginLocal = content.indexOf("<script>var");
    int endLocal = content.indexOf("</script>");
    content = content.substring(beginLocal, endLocal);
   
View Full Code Here


   * @param url
   *            视频URL
   */
  public static Video getTudouVideo(String url) throws Exception {
    Document doc = getURLContent(url);
    String content = doc.html();

    int beginLocal = content.indexOf("<script>document.domain");
    int endLocal = content.indexOf("</script>");
    content = content.substring(beginLocal, endLocal);
    /**
 
View Full Code Here

   * @param url
   *            视频URL
   */
  public static Video get56Video(String url) throws Exception {
    Document doc = getURLContent(url);
    String content = doc.html();

    /**
     * 视频标题
     */
    String title = doc.getElementById("VideoTitle").select("h1").text();
View Full Code Here

    /**
     * 视频简介
     */
    String summary = doc.getElementById("videoContent").text();

    String content = doc.html();
    int beginLocal = content.indexOf("document.domain");
    int endLocal = content.indexOf("</script>");
    content = content.substring(beginLocal + 2, endLocal);

    /**
 
View Full Code Here

   * @return
   * @throws Exception
   */
  public static Video getIfengVideo(String url) throws Exception {
    Document doc = getURLContent(url);
    String content = doc.html();
    int beginLocal = content.indexOf("videoinfo={");
    int endLocal = content.indexOf("</script>");
    content = content.substring(beginLocal, endLocal);
    content = content.replaceAll("\"", "").replaceAll("\n", "").trim();
    content = content.substring(11, content.length() - 2);
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.