Jump to content

Is there a way I could run a php script to check for pages indexed in Google?


Jeffro

Recommended Posts

Not sure if this is possible, but.. 

 

As most of you likely know, if a person searches Google, they can see how many webpages are indexed by using:  site:techcrunch.com

 

Is there any way that I could do this via a php script for 10 different sites and then have the results emailed to me on a daily basis? 

 

I'm not asking for a coded solution.. just an idea on how this might be achieved, if it could? 

 

Thanks. 

Link to comment
Share on other sites

You can use google's search query api. But I'm pretty sure they have a max 64 results per query for their api's.

 

I think would have to make yourself a scraper to do it properly, and even then, they only display x amount of results and then by date.

 

While google may have no problem scraping your site continuously, they certainly will when you try and scrape them back.

 

Here's an idea.

Cycle through all your links, and for each link... check if the link exists at google or not through their search query api, save and tag the results into a database.

Link to comment
Share on other sites

You can use google's search query api. But I'm pretty sure they have a max 64 results per query for their api's.

 

I think would have to make yourself a scraper to do it properly, and even then, they only display x amount of results and then by date.

 

While google may have no problem scraping your site continuously, they certainly will when you try and scrape them back.

 

Here's an idea.

Cycle through all your links, and for each link... check if the link exists at google or not through their search query api, save and tag the results into a database.

 

Thanks!  Seeing if I'm still indexed is actually the primary goal here so if I could accomplish what you said, it would serve the purpose perfectly.  I've never messed with Google's API before.. I'm off to check it out.... 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.