it would be a nice feature to display in a recipe-view the first result of a google-image-search of the recipe-name if the recipe has no image..
Very clever idea -- want to implement it ;)
Two potential problems come to mind -- one is the speed impact. The second is the risk of undesirable images coming up, though I don't know how big a risk that is.
If we ran it the searches in a separate thread, the impact on the program wouldn't be too bad. Of course it would have to be disableable (and probably disabled by default).
I actually decided this would be really neat and started to think about implementing, but unfortunately I've hit a snag. The Google API doesn't support google images support, and you can't really hack anything together without doing something pretty nefarious (google blocks most non-browser searches automatically. I don't know how they do this, but it would feel dishonest to try to get around it, given that they provide a python API for those things they'd like you to be able to use via a script). So, for now, this idea is dead in the water.
ya i know, i meant to simulate a firefox http header, just for the query... i think it can be done, i've seen project using that system to simulate a web browser surfing the web...
couldn't you just copy the header from firefox?
(just a suggestion)
The point would be to automate the process -- you wouldn't want to use firefox at all.
How about just generating the link for google search asociated to a default image? E.g. for saltimbocca alla romana:
<a href="http://www.google.com/images?q=saltimbocca%20alla%20romana"><img src="default.img"></a>
This way, you can click on it and you will be presented the result window in a browser. A still missing feature would be to add an image from a URL.
Maye you could also call the google page from within a frame. Gourmet could then offer to automatically download the image from the result page and insert it into sqlite.
This way, you won't break google's policy for API use.
My 2 cents.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.