I try to parse the source file of a website called dgtle.com In order to get the top news, I coded as :
Document doc = Jsoup.connect("http://www.dgtle.com").get();
Elements blocks = doc.getElementsByClass("listcs1");
I got nothing but NullPointerExecption while doing this. But the Div with the class of "listcs1" really exists. This troubles me and I'm wondering whether anybody can help me deal with this.