I'm really new on JSOUP and I'm developing an course selection android project.It goes the college web site by using a webview. Student logs on the system, then the project must parse the student transcript.
college web site for instance: www.campus.bk.edu.da
Student transcript URL is: www.campus.bk.edu.da/student_trans
my code is below; I am running this code after user logged in to site.
String ht ="";
String url = "https://campus.bk.edu.da/student_trans.asp";
Document doc =Jsoup.parse(url);
ht=doc.html();
When I run this I got the html of the paren site; www.campus.bk.edu.da. Where am i doing wrong?
My java code is:
campusWeb.loadUrl("http://campus.bk.edu.da/");
campusWeb.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
if (url.toString().equals("https://campus.bk.edu.da/student_trans.asp")) {
new soup().execute();
}
return true;
}
});