coder_For_Life22
coder_For_Life22

Reputation: 26981

How to read text and image from html?

How to read all text and images from a html page for example

http://wireless.ign.com/articles/118/1186400p1.html

Lets say i would like to get the text on the page, and the Latest images?

How would i go about doing this?

via HTTPGET Request? If so how?

How can i get this text and then do something with it and the images, like set it to a text view, and set the images to ImageView.

Upvotes: 0

Views: 359

Answers (2)

prashant thakre
prashant thakre

Reputation: 5147

use below code in unix/linux wget http://wireless.ign.com/articles/118/1186400p1.html -O test.html

Upvotes: 1

xandy
xandy

Reputation: 27411

Use HttpURLConnection to get the html, and then use Regex or something like JSoup or similar to parse the Html.

Upvotes: 0

Related Questions