Scrape Google Images Search Results With PHP

You could use the Ajax Search but I think it will return very few results unlike regular image search which returns 21 images per request.

The previous PHP script I published (on my old blog) to scrape Google Images has been rendered absolete by the JSONish output of images results. So I had to write another one (actually fix the old one) to scrape the JS encoded image objects and return them in a friendly way.  This function returns an array of objects, each being an image with full details.

Use this to bring color to your black hat sites or ... whatever.

Zone unavailable to unregistered users.
Registration is FREE, quick, painless and worth its weight in gold.

Have fun with it, while it still works. If it breaks again let me know and I'll see if I can fix it.

Category: JavaScript JS, PHP

5 Responses

  1. +gorthal2:2 — #55 says:

    hey boy !
    You are just too good !
    Thank you sooo much for this really helpfull script.
    You help me a lot, thanks for sharing your knoweldge.

    You rock !

    :o)

  2. +ruggero1:2 — #66 says:

    print_r(el_gg_imageSearch(’test’)); does not return anything to me? am I doing sth wrong or did they change the result page?

  3. +TDFun2:3 — #36 says:

    Great thanks in advance!

Leave a Reply

Comment Links are DoFollow only for registered subscribers … if comments pass moderation. Links in your comments may be slaughtered, hijacked or removed.