I did lots of search for Google Image Search using local image but not found any accurate answer. like what are the parameter we have to pass when upload a photo to google server. so any one know how i can use Google Image search for searching local image stored in my harddisk but using python programming. tell me if any Library or API available. Thank you in advance.
This looks like a duplicate of this question:
Google Search by Image API?
The Google Image API is deprecated but as the answerer points out, there are alternatives like tinyeye.
Related
I am attempting to find the Image for an instance on Google Cloud Platform using the Google Python SDK. So far, I can get the instance, get the disks for the instance, find the boot disk, and extract the sourceImage and sourceImageId fields from there. However, since my instance and disk are in a different project from the image, I'm having trouble getting the actual image object.
The disk's sourceImage is https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images/centos-7-v20200420 and its sourceImageId is 2742482894347998968.
My question is similar to a previous question (GCP Python SDK - Get data from the googleapi url's) except that I would like to find the best-practice method. The lone answer on that question recommends using the URLs in the metadata to get the related object but there is a comment that indicates that the URLs in object metadata are not real URLs which makes me think they should not be used directly. All I need is the project (centos-cloud in this case) for the image and I can use the sourceImageId to get the image object. I could extract the project from the URL pretty easily but that seems fragile. I looked through the documentation to see if there was a built in function to extract the project or get the image using that URL, but I didn't find one.
Is there something I have overlooked? Or is this not a supported workflow? Or did I misinterpret John Hanley's comment and I should just use that URL to pull the image?
TL;DR: Given only a disk's sourceImage (eg. https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images/centos-7-v20200420) and sourceImageId (eg. 2742482894347998968), how can I programatically get the Image object from the API?
google-api-python-client==2.45.0
Python 3.10
I was pondering the idea of a script/program that will auto upload to Youtube from cloud storage. I'm sure this has already been done and would appreciate it if someone could put me on the right path.
Thanks
Your are not giving a lot of detail informations e.g. what cloud you use? Maybe i'm keeping it way too simple though:
I guess this problem can be splited in to two parts:
Download to video to your local system. There are a lot of articles/documentation for all kind of cloud storage provider e.g. google cloud
Use the provided YouTube API documentation to upload your video you just fetched to your local system.
You may want to delete the video on your local file system.
I know Google's powerful image search feature but it's searching images from the entire Internet.. Until recently, I discovered they apply image search to Google+ photos. That means you can search your own photos by keywords.
I'm wondering if there's any API/Lib (provided by Google) so that I can use directly... To be more specific, I'm working on Google App Engine. I know there are Image API and Search API.. I have not found Image Search API yet. And I don't know if this deprecated image search API does the job I want..
I'm really trying my luck to ask this question!
I want to save the first three images of a Google Images Search to my local drive.
For that, I need an API. Google has the Google Image Search API, but it seems that it's deprecated now.
Is there an alternative for it?
If not, is it against Google's TOS to parse the webpage itself?
Thanks.
You can use the Custom Search API now instead. And here's a starting point.
Hope that helps.
I am trying to retrieve a photo (the .jpg file) from a Picasa album using the gdata Google API. However I did not find any method which does it, even though it is possible to upload a photo using methods like InsertPhoto and InsertPhotoSimple.
I guess I must be missing something :-(. A simple example would help.
Client API provides methods only for obtaining information on photos: http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_python.html#Photos
To retrieve an image, use an HTTP GET with information previously obtained. Read the documentation.
For this purpose you may use a Python library:
httplib
urllib2