save google seach resoults in a file ?

Discussion in 'Google API' started by cosy, Nov 27, 2008.

  1. #1
    is there any way to save google search resoults in a file ?
     
    cosy, Nov 27, 2008 IP
  2. SEOAnalytic.com

    SEOAnalytic.com Member

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    Yes in php that is possible.
    PHP+CURL is what you need.
     
    SEOAnalytic.com, Nov 27, 2008 IP
  3. freelikehell

    freelikehell Active Member

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #3
    please explain.. for saving results, you can save the html page using ctrl+s .. is that what you need?
    If you need a scripting approach, then use php's curl functions
     
    freelikehell, Dec 7, 2008 IP
  4. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #4
    request the search via a server side program or script-- parse it saving the data you want and and send it as an email file. PHP, Java, JSP can all handle these types of requests. You can also write it as a temporay cache html file.

    Q...
     
    QiSoftware, Dec 13, 2008 IP
  5. zealus

    zealus Active Member

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #5
    If I remember correctly I was writing a script that would harvest search results from Google. The only problem is not to look like a bot so Google wouldn't ban your IP. I was querying for each next page after no less then a few seconds.
     
    zealus, Feb 17, 2009 IP
  6. robinko

    robinko Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If IE6 use Save As... for html file.
     
    robinko, Feb 26, 2009 IP
  7. stereolab

    stereolab Peon

    Messages:
    151
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think google returns the search results on JSON format, which is pretty easy to parse and store in whatever database or flatfile you want.

    there is also this:

    Keeping a Search Result

    The samples so far have focused on embedding search results on your page for display only, without the capability to store those results to another application. While this is a perfectly appropriate use of the Google AJAX Search API, it does not demonstrate its true potential. The Google AJAX Search API is designed to allow users to distribute search results to others, primarily through content creation applications like blog posts, message boards, etc.

    The google.search.SearchControl object provides this functionality through its setOnKeepCallback() method. Using this method, applications specify an object and method that is called whenever a user indicates the wish to save a search result by clicking the "Copy" link below the result.

    This link is only provided if applications have called setOnKeepCallback() method. When a user clicks the link, the registered callback receives a GResult instance representing the search result. This search results object contains a number of searcher specific properties, as well as a uniform html property that contains an HTML element representing the entire search result. The simplest way to handle the callback is to clone the html node and attach it to a node in your application's DOM.

    http://code.google.com/apis/ajaxsearch/documentation/
     
    stereolab, Mar 3, 2009 IP
  8. johngfcarey

    johngfcarey Peon

    Messages:
    446
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for ur help. it work good for me
     
    johngfcarey, Mar 20, 2009 IP
  9. gh2008

    gh2008 Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you know php, you can write a script to accomplish it.
     
    gh2008, Mar 20, 2009 IP
  10. ahmedtaufiq

    ahmedtaufiq Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10

    I m alson looking for the same script that stores the links inside " ADS BY GOOGLE" box.

    I am ready to pay a reasonable price for it.
     
    ahmedtaufiq, Dec 25, 2009 IP
  11. SEOAnalytic.com

    SEOAnalytic.com Member

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #11
    Then pay Google directly ;)
     
    SEOAnalytic.com, Jan 11, 2010 IP