Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direct URL to "I'm Feeling Lucky" for images

Tags:

url

image

I have a website for book reviews. I offer a link to the Amazon entry of the books. I discovered after a bit of research that the direct URL for Google's "I'm Feeling Lucky" is:

http://www.google.com/search?hl=en&q=TITLE+AUTHOR+amazon&btnI=745

Which works magic because then I don't have to manually include the Amazon link in my database and directly links to the Amazon page (works 99.99% of the times).

I was wondering if there was an equivalent for images (whether Google or some alternative) to retrieve an image URL based on keywords only (for the purpose of getting the book cover image).

like image 301
user1306458 Avatar asked Dec 01 '25 22:12

user1306458


2 Answers

There's no such thing for Google Images, but you might be able to use another web service to do what you want. I noticed that when you're searching for a book, the first image result isn't always the cover of it. Sometimes it's a photo of the author, sometimes it's some image from book's review, so you can hardly rely on that.

like image 196
Ernestas Romeika Avatar answered Dec 03 '25 21:12

Ernestas Romeika


It should not be hard to parse the amazon page and get the image and link but google has an API to google books that return all informations about a book in JSON format, you can try it online on the API Explorer (the cover are on the results too). Click here to see an example (click "Execute" to run it).

like image 30
Leo Avatar answered Dec 03 '25 23:12

Leo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!