Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve data from website in android app

Tags:

How can we retrieve data from a website and parse it into a readable format in the Android application? This means I want to extract data from website and use it in my android application, formatted in my way. It could be any website.

like image 853
dejavu Avatar asked Jul 20 '11 11:07

dejavu


1 Answers

You can use jsoup to parse any kind of web page. Here you can find the jsoup library and full source code.

Here is an example: http://desicoding.blogspot.com/2011/03/how-to-parse-html-in-java-jsoup.html

To install in Eclipse:

  1. Right Click on project
  2. BuildPath
  3. Add External Archives
  4. select the .jar file

You can parse according to tag/parent/child very comfortably

like image 154
Rasel Avatar answered Oct 22 '22 06:10

Rasel