LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Google Search Image API / WebService (https://www.linuxquestions.org/questions/slackware-14/google-search-image-api-webservice-824830/)

mlpa 08-07-2010 03:57 PM

Google Search Image API / WebService
 
Hi everyone, I'm looking for a API or a WebService from google to search images. I'm making a library in C++ for searching and downloading images, I have code to download images using libCurl.
I'm hoping that some one so big like Google have WebServices like that or some library.

I use Slackware64 13.1, don't think its relevant, but in any case...

paulsm4 08-08-2010 12:09 AM

Hi -

1. Yes, Google does have exactly such an API.
Just Google for "google image search api" and you'll come up with lots of "bingo's".

2. Unfortunately, C++ is generally not the best language for "doing web services". I hate to say it, but Microsoft .Net languages like C# or VB.Net are probably better (and certainly a lot easier!). Java probably comes in next. But C++ - I think you're in for a lot more work than you might be expecting.

C++ is also not the best language for using "Google APIs".

Java is #1 (for server side), and Javascript is #1 (for client side).

Anyway, please do the Google search, look over the Google documentation and sample code (there's TONS of GREAT material available!) ... and decide what's best for you.

Good luck .. PSM

mlpa 08-08-2010 06:19 AM

The language is no big problem, libCurl for C and C++ supports SOAP, witch means that if Google have a WebService it should work out of the box.
But I can find a WebService in Google, a lot of API's for AJAX, etc... But a simple WebService isn't around.

mlpa 08-16-2010 06:04 PM

So I manage to have a googleSearchImage() written in good old C++.
It uses libCURL and regex.h(it's POSIX, so every linux should have it already).

It's not a finish job, but if anyone is curious about the code, or need a function like this I can provide the source code.

Auberotte 08-05-2013 10:20 AM

Hi mlpa,
i would be very interested in your code since this is exactly what i want to do, a google lookup for images and than storing those to the local drive.
I already wrote you an email, that i am very interested in how you solved this, which you didn't answer yet.
Would be very happy if you could provide any insight.

mlpa 08-05-2013 03:01 PM

Answered in a PM

Quote:

Originally Posted by Auberotte (Post 5003325)
Hi mlpa,
i would be very interested in your code since this is exactly what i want to do, a google lookup for images and than storing those to the local drive.
I already wrote you an email, that i am very interested in how you solved this, which you didn't answer yet.
Would be very happy if you could provide any insight.



All times are GMT -5. The time now is 08:34 PM.