开发者

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 开发者_Go百科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.


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


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜