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