For example: Say I searched something on the Walmart homepage. Like this. How would I retrieve the information from the first p开发者_如何学Goroduct listed. Information like product name, price, details, rating, model. And how would I search in the box. The only way it seems like to me is to replace http://www.walmart.com/search/search-ng.do?search_constraint=0&ic=48_0&search_query=someProduct&Find.x=0&Find.y=0&Find=Find. Then replace someProduct with the seach and call it in an HttpClient.
Its requires some Server side task. when search the with your url it should return the xml feed which contains what your are needed fields like name, price,etc.After that you can parse that xml and achieve your target.
But its not possible for you to do that serverside work. you can use some html parser to do that.
精彩评论