Parse 1st Google Result Android Code
I would like somebody to give me an example code to parse only the first google result. For example i open http://google.com/search?sourceid=navclient&btnI=1&q=microsoft. T
Solution 1:
Use JSON/Atom Google Custom Search API.
In short, send an HTTP request (HTTP GET in Android) with a query in REST format and you will get an HTTP response with search result in JSON format. Just parse the result (JSON parser) and voilĂ !
All you need is basically in Google Search documentation, so read it first. Pay special attention to:
- the URI format for a search
- Query parameters - you may need "num" parameter, as it specifies number of search results
Now you can start writing some code and come back if you have problems.
Post a Comment for "Parse 1st Google Result Android Code"