Through jsoup parsing page html get Youku page video list Author: javaboy2012Email: yanek@163.comqq: 1046011462 code: [java] package com. yanek; import java. io. IOException; import java. util. hashMap; import org. jsoup. jsoup; import org. jsoup. nodes. document; import org. jsoup. nodes. element; import org. jsoup. select. elements; public class Tool {/*** @ param args */public static void main (String [] args) {String url = "http://www.youku.com "; // url = "http://movie.youku.com"; HashMap list = new HashMap (); Document doc; try {doc = Jsoup. connect (url ). get (); Elements links = doc. select ("a [href]"); int s = 0; for (Element link: links) {String v_url = link. attr ("abs: href"); if (link. ownText (). length () = 0) {continue;} if (list. containsKey (v_url) {continue;} if (v_url.startsWith ("http://v.youku.com/v_show") {System. out. println (link. attr ("abs: href") + "-" + link. ownText (); list. put (v_url, v_url); s ++;} System. out. println ("total:" + s);} catch (IOException e) {e. printStackTrace ();}}}