meal images from google

reto
2005-04-09
2013-05-14
  • reto

    reto - 2005-04-09

    hi,
    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..
    :)

     
    • tom

      tom - 2005-04-10

      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).

       
    • tom

      tom - 2005-04-14

      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.

       
      • sesas

        sesas - 2009-08-02

        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...

         
    • sesas

      sesas - 2009-08-01

      couldn't you just copy the header from firefox?

      (just a suggestion)

       
      • tom

        tom - 2009-08-01

        The point would be to automate the process -- you wouldn't want to use firefox at all.

         
  • Daniel Adad

    Daniel Adad - 2010-05-16

    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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks