0

Hi guys Im very frustrate searching this question on Internet. I want to get the html code from WEBVIEW and then put it in textview I dont want to use jsoup for some reason My only hope is javascript Interface

Please give me a working code to study

1 Answers1

0

First Login and get login cookie then parse website

Connection.Response response= Jsoup.connect("https://loginpage")
                .data("user",user,"pass",pass)
                .method(Connection.Method.POST)
                .execute();
       Map<String,String> cookie=response.cookies();
      
       Document document=Jsoup.connect("https://loggedwebsite")
            .cookies(response.cookies())
            .get();

Check also this: How to post form login using jsoup?

yardımcı Etis
  • 140
  • 2
  • 12
  • I don't believe that works for the logon page of most of the (numerous) web-site / social-media / e-mail / video-sharing platforms out today on the Internet. – Y2020-09 Oct 10 '20 at 22:20