CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011

    Post queries to and download images from google image search

    Dear all:

    I'm having a challenging problem:
    I want to write a program, which accepts user input string and posts that string as a query to google image search. Then the program needs to download all or a subset of returned images into a folder on local machine.

    I have the following ideas:
    1, use libcurl for http interaction. But libcurl doesn't seem to be able to parse the html of the returned google page
    2, use use google image search api. But the api seems to be only offering javascript api. How can I make use of google image search api in my C++ code?

    Thanks for any inputs, all ideas are welcomed and greatly appreciated.

  2. #2
    Join Date
    Feb 2011
    United States

    Re: Post queries to and download images from google image search

    I do not recommend the libcurl; screen-scraping is a wrongheaded solution. You may be interested in some of the following links:

    Querying using python: http://dcortesi.com/2008/05/28/googl...e-python-code/

    Also you may consider that C++ may not be the right tool for the job. A higher-level language might be indicated here.
    Best Regards,

    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.