【问题标题】:How to get the html code from webview without usinh jsoup?如何在不使用 jsoup 的情况下从 webview 获取 html 代码?
【发布时间】:2020-10-10 18:24:27
【问题描述】:

我想从 webview 中获取 html 代码,然后放到 textview 中。 有人建议我使用 jsoup,但在我的情况下 jsoup 不起作用,因为我的目标站点有登录页面。

仅作为示例 从

获取html代码

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

如果我使用jsoup,它不会从上面的url中获取html,因为jsoup无法登录fb。

我想请教如何从 webview 获取 html 代码然后放到 textview 中?

【问题讨论】:

    标签: java android html parsing jsoup


    【解决方案1】:

    基本上,您可以使用 jsoup 进行身份验证并从 Web 应用程序中获取数据。看看this教程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-19
      • 1970-01-01
      • 2022-06-10
      • 2012-08-21
      • 1970-01-01
      • 2012-01-06
      • 2011-01-25
      相关资源
      最近更新 更多