import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringWriter;
import java.net.URL;
import java.net.URLConnection;
//import javax.lang.model.element.Element;
import javax.swing.text.BadLocationException;
//import javax.swing.text.Document;
import javax.swing.text.EditorKit;
import javax.swing.text.html.HTMLEditorKit;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
//import org.w3c.dom.Document;
public class Parsing_Main {
public static void main(String args[]) throws IOException {
URL url = new URL("http://battlecats.spica-net.com/unit/r_all.html");
Document doc = Jsoup.parse(url, 3000);
//http://stackoverflow.com/questions/28696586/jsoup-how-to-parse-table-3-rows
// Elements tables = doc.select("table .bgc12"); // Table IDで取得
// Elements tables = doc.select("table tr[class*=bgc12]"); // Table trで取得
Elements tables = doc.select("table tbody"); // Table IDで取得
// Elements tables = doc.select("div .maincontents");
String str = tables.toString();
System.out.println(str);
}
}