Google Image Search Revamped
Damn! Euan just pointed out that our "grabimg" utility here on Mad Props no longer works. We coded up a small ASP.NET utility a few years ago which, given a single parameter, would perform an image search on Google and return a random thumbnail from the results. It made decorating our blog posts easy, since we'd be able to insert some HTML like <img src="/grabimg?image=vista" mce_src="/grabimg?image=vista"> and a random image of Vista would be inserted.
Well, it has stopped working in the past few days because Google have changed the way they display the search results on their image search page. Instead of plain old HTML, they're now using javascript and rendering the thumbnails dynamically. It's more or less impossible for us to predictably scrape the results.
That's a real shame. If anyone knows of an "open" image search site that we might be able to use in place of Google, let me know!
Comments
# Andrew Tobin
25/01/2007 12:43 PM
ooh no comments.
Flickr seems the obvious choice.
In fact you pointed me towards a video recently that went over the Flickr API for something.
I believe it was the DNR AJAX one.
Their API didn't seem too hard as it was just a SOAP call or something, nay?
# mabster
25/01/2007 1:07 PM
Andrew, you're a genius.
GrabImg rides again, FLICKR_STYLEZ!!!
# Euan
26/01/2007 5:39 PM
Thats wootastic!
# JohnyMac
12/03/2007 11:34 AM
Any chance on getting my hand on that asp code please? :)
# mabster
12/03/2007 11:47 AM
Sure, Johnny - drop me an email. mabster at this web site's domain.