arrays - Using Java to automate google and print output -


does know if there's easy way implement this:

i have array of strings (~650 elements) , google each element, , have number of results acquired in each search stored in integer array. looked @ google api, seems little daunting me, seems simple task, can't seem find guidance on how this.

help appreciated. thanks.

my first thought following. don't think fastest or elegant way, think should trick:

if check url on google, same:

http://www.google.com/search?q='here searchword' 

so iterate on array , each string create url e.g.

http://www.google.com/search?q=test 

do http-post , parse result.

here short example of httppost. can see how response. don't know how googles response looking, if print out whole response, think see how have parse it.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -