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.