Results 1 to 6 of 6

Php script that sends requests to Google

This is a discussion on Php script that sends requests to Google within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Hi there, Just decided that it would be fruitful to make a script that checks how many pages from my ...

  1. #1
    Member
    Real Name
    Anatoliy
    Join Date
    Nov 2006
    Location
    Planet Earth
    Posts
    41
    Liked
    0 times

    Php script that sends requests to Google

    Hi there,

    Just decided that it would be fruitful to make a script that checks how many pages from my web-site are listed in Google (site:www.mysite.com) and saves results.

    How can it be done? I got Google API key, but not sure that I'm on the right way. Google AJAX Search API is Greek for me... Do I really need to use it to get what I want?

    May be there is a less complicated way? (I hope ).

  2. #2
    Senior Member
    Real Name
    Nick Le Mouton
    Join Date
    Nov 2005
    Location
    New Zealand
    Posts
    422
    Liked
    14 times
    This doesn't use the API, but here's a script I wrote to check how many pages/backlinks my site had:

    Noodles’ Blog » Blog Archive » Google datacenter check

  3. #3
    Member
    Real Name
    Anatoliy
    Join Date
    Nov 2006
    Location
    Planet Earth
    Posts
    41
    Liked
    0 times
    Thanks Noodles,

    I wrote something similar to your script by myself (it gets the page using fsockopen() function). However as you indicated on your page: "Google would ban my server’s IP"... I'd like to build it the way it should be built and not be afraid of being caught for making "pirate's" requests.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    google search api php - Google Search
    However as you indicated on your page: "Google would ban my server’s IP"
    There is still a limit of 1,000 requests per day per api key though.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member
    Real Name
    Anatoliy
    Join Date
    Nov 2006
    Location
    Planet Earth
    Posts
    41
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    google search api php - Google Search
    There is still a limit of 1,000 requests per day per api key though.
    1,000 requests per day is more than enough for me But how to build such an application with Google AJAX Search API?

    You guys probably use SOAP API. Ufortunately from 5th of December Google doesn't give keys for SOAP API anymore and sends everyone to Google AJAX Search API.

    SOAP API looked complicated for me. But I changed my mind after took a look at docs for Google AJAX Search API...
    Last edited by Anatoliy; 12-12-2006 at 09:43 PM.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    Basically, with AJAX search api doesn't have limitations of soap version, since all requests are performed on client side, not from a single server IP.

    It would be still possible to use it in similar way as "old approach" extracting ajax request URLs, like:
    HTML Code:
    http://www.google.com/uds/GwebSearch?callback=GwebSearch.RawCompletion&context=0&lstkp=0&rsz=small&hl=en&sig=12f87b457bdbba45b248d920a09f1429&q=VW%20GTI&key=internal&v=1.0
    and then manually process returned js code, although it's not designed to work in this way.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Google Reinclusion Requests - Matt Cutt Video
    By Joe Ward in forum General Discussion
    Replies: 3
    Last Post: 08-07-2006, 05:29 PM
  2. Google is All About Search: 4 New Products
    By Joe Ward in forum General Discussion
    Replies: 0
    Last Post: 05-16-2006, 02:52 PM
  3. Some extreme issues need help on fixing.
    By pspcrazy in forum Troubleshooting
    Replies: 14
    Last Post: 03-14-2006, 04:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •