How to enter a website and scrape text/div name/button code and save it to variable - Android Java

Viewed 26

I am an newbie in android / java topic so thanks to you all who responds and helps me! :)

So I am looking for a specific function to my android app.

I want my app to enter website (even in the background, not in webview) and scrape (copy) button code (for example URL of the button) / OR specific text.

Regarding text (as it would be easier to explain), there are a website where texts appears:

Hello, today is <name of today's holiday>. And I want to scrape this name of today's holiday. Every visit, it is changing.

And I want to use it later in my code, so I guess we need to store it somehow (as a variable?).

So, we need to:

  • enter a specific URL in the background
  • copy specific text
  • store it in the app and for example, show it in the app.

Thanks all for replies!

0 Answers
Related