Hi to you all
I saw couple threads about getting data from webpage so this is simple java example
you will need jsoup jar file in your project
what we are doing here is getting names of posts
i think it is easy to follow this example so if you have any questions just ask
I saw couple threads about getting data from webpage so this is simple java example
you will need jsoup jar file in your project
Code:
Document doc = null;
try {
String currUrl;
doc = Jsoup.connect(ENTER BLACKHATWORLD URL INCLUDING HTTP).get();
} catch (IOException e) {
;
}
Elements allElsWithClassName = doc.getElementsByClass("threadbit");
Iterator it = allElsWithClassName.iterator();
while(it.hasNext()){
Element b = (Element)it.next();
System.out.println(b.getElementsByClass("threadtitle").text());
}
what we are doing here is getting names of posts
i think it is easy to follow this example so if you have any questions just ask