July 11th, 2011, 04:30 PM
Post queries to and download images from google image search
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
Thanks for any inputs, all ideas are welcomed and greatly appreciated.
July 14th, 2011, 12:50 AM
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.
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
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!