开发者

Save text from webpage to String variable

开发者 https://www.devze.com 2023-01-22 18:59 出处:网络
I want to save something from a webpage (开发者_StackOverflow社区loaded into webview) into a Java variable. Is that possible?

I want to save something from a webpage (开发者_StackOverflow社区loaded into webview) into a Java variable. Is that possible?

Example: I have a webpage with written text: HELLO STACK!. How could I save that text into Java var (String foo = ?????)?

Could I do it with JavaScript/Java cooperation?


Launch an http request and save the response to text, then process it to get what you want, you wouldnt have to use a webview.

0

精彩评论

暂无评论...
验证码 换一张
取 消