Java code to crawl google search results

Following would be the input to the code:

website, Keyword, Crawl interval

Open in new window

The crawler,based on the Crawl interval, should automatically perform a google search for the Keyword targeting the Website given for that particular Keyword. In the google search results, you can notice that, google provides information as to when that url within the website was updated(eg; 45 minutes ago, 3 hours ago, 2 days ago, Aug 22, 2013 and so on). If in search result, you get a result(url or urls) which came after the last crawled time(say n minutes ago, n days ago etc.), then those url's need to be fetched to an arraylist.

Any help or suggestion, implementing the mechanism above using java is much appreciated.

Correct solutions or guidance, preferably with code snippets will be awarded full points.
Who is Participating?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Before you even try to do this, you should be aware that Google is making it very difficult to crawl their search results.  A Google search results page is mostly javascript.  You should do a simple search on Google and then view the page source to see if you can find what you are looking for.  If you can't find it, then your program will have to run the javascript code to generate those results.  That is not an easy task.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.