简体   繁体   English

如何在没有usinh jsoup的情况下从webview获取html代码?

[英]How to get the html code from webview without usinh jsoup?

I want to get the html code from webview and then put it in textview.我想从 webview 获取 html 代码,然后把它放在 textview 中。 Someone suggested me to use jsoup but in my case jsoup doesnt work because my target site have login page.有人建议我使用 jsoup,但在我的情况下 jsoup 不起作用,因为我的目标站点有登录页面。

Example only Getting the html code from仅示例 获取 html 代码

https://mbasic.facebook.com/groups/1185861891542944?refid=27https://mbasic.facebook.com/groups/1185861891542944?refid=27

If I used jsoup It wont get the html from the url above because jsoup cant logun fb.如果我使用 jsoup 它不会从上面的 url 获取 html,因为 jsoup 无法登录 fb。

Im asking for your help on how to get the html code from webview and then put it in textview?我寻求您的帮助,了解如何从 webview 获取 html 代码,然后将其放入 textview?

Basicly, you can use jsoup to authenticate and fetch the data from web applications.基本上,您可以使用 jsoup 对 Web 应用程序进行身份验证和获取数据。 Take a look at this tutorial.看看这个教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM