开发者

How to read text and image from html?

开发者 https://www.devze.com 2023-03-26 21:40 出处:网络
How to read all text and images from a html page for example http://wireless.ign.com/articles/118/1186400p1.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

精彩评论

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