0
嘗試獲取選項標記中的信息,但是使用我的路徑它將帶有標記的信息返回。JSoup從列表中選擇選項java
Connection conn = Jsoup.connect("http://timetables.cit.ie:70/studentset.htm");
conn.timeout(5000); // timeout in milliseconds
Document doc = conn.get();
String title = doc.title();
Elements tBody = doc.select("[id=objectlist] > select > option ");
System.out.println(tBody);
http://jsoup.org/apidocs/org/jsoup/nodes/Element.html#text%28%29嘗試 – 2015-03-02 10:59:23