Hi there is a google page http://www.google.com/imghp where we can load image and search the internet if it exist on some pages, my question is how to do it from c# but not to get all images similar or sth, only pages where this image exist.
Previously, the way to do that was with Google's Image Search API, but it is now deprecated and won't be around much longer. You can still use it while it lasts.
As an alternative, there is Microsoft's Bing API, with the Image SourceType.
Edit: From the link I posted above:
The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited.
From the deprecation policy, section 1.3:
... For a period of three years after an announcement (the "Deprecation Period"), Google will use commercially reasonable efforts to continue to operate the Deprecated Version of the Service ...
So, you can expect the Google Image Search API to be around until May 26, 2014. You can enjoy it still for a couple of years.
Use TinEye:
https://www.tineye.com/commercial_api
https://api.tineye.com/documentation
Related
Is there any API which i can use in a WPF application to search Google?
The thing is:
Currently my team is searching for few files in Google and they do this alot,
so I would like to build an application which will search for the files in Google and return the links.
E.g:
I am searching for the product pentium 4 chips.
Then they will search in Google for the documentation(PDF's basically) about pentimum 4 chips.
Following this, they will take the search results which matches the manufacturer website(e.g. intel.com)
and with the found PDF's they will continue their work.
I want to use the Google search API to get the details and give them the exact links or links which nearly match.
My problems:
I am not finding a correct api.
I am not sure how to use it.
It doesn't matter if its C# or WPF or WCF.
Frontend can be anything, you need to focus on logics.
Try this
http://googledotnet.codeplex.com/
Also
http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/82da7a25-9f30-4d76-93dc-4acd1c2a938a
I am using the example Google Maps API V3 for ASP.NET on Code Project and it works very well.
I'd like to add a little functionality to it but I'm not sure it is possible. I have done some research but I'm not sure what I the terminology for this is.
We have a lat/lon being reported to our SQL Server every 15 seconds. I'd like to take a reading at every minute and map the route where the vehicle has gone for x number number of readings
I can put pins on the maps with lat/lon without a problem but I'd like to show the route that it went, with lines or something to the like.
Is this possible with Google Maps?
Sure. In the Google Maps API, these are called Polylines.
Here is a link to the documentation:
https://developers.google.com/maps/documentation/javascript/reference#Polyline
And here is one of the developer samples using Polylines:
https://google-developers.appspot.com/maps/documentation/javascript/examples/polyline-complex
I need to get live information like news, photos, content, videos link, and etc from the website and display it on my app.
Please let me know how to do it. I saw some samples, they get info using web client. mostly its for string content. for me, i display some photos and some other reference link and etc.,
Anyone help me how to do it.
It depends on the site from which you want to fetch the data. Many popular sites implement their own API's for providing the data. For example, Twitter API and Facebook API.
And the data is provided to us in the form of XML or JSON in general, which you need to parse in your app and show it in your UI.
Note: Whatever may be the data format(images or videos), they are provided as the http links which you need to supply as the source to your UI components.
For example, insert an image tag in UI
<image Name="myImage"/>
and then after parsing your web response, supply its source from your response like this
myImage.Source = response.imageSource;
(This is just for an overview, not a complete solution)
You may want to review the Code Samples here :-
http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx
Your question is very broad as there are many factors involved in creating a Windows Phone application so you need to look at various samples, take the bits you want from those samples and then create something, it is very difficult to create an app for someone in a forum post, this is why you are not going to get a direct answer to your question.
I want to design my own search engine application, where all the results are displayed to the user on one single page (from Google/Bing etc) unlike Google where it is displayed on different pages.
Does there exist any such API's which can get me all those results?
PS. I am using C#, and considering the IEnumerator interface for this?
If you just want to be able to serve search results to users, then the APIs provided by search engines are probably the way to go. As already mentioned there's Bing's Live Search API (which I've not used but looks fine), and also Google's Web Search API.
Additionally, there's Yahoo BOSS which I found very easy to use. However, it looks like BOSS is now a paid API - so depending on your budget/intention, it might not suit.
Google's Web Search API is now deprecated, but should still work for a small number of queries - it's the platform that tools like this number of results counter are built on. It's been replaced by the Google Custom Search API which depending on your needs may or may not work for you. I've not used it, but it looks fine, and is free for small numbers of queries.
The problem with crawling and then parsing search pages is that search engines regularly change the underlying html of the search result pages - so any screen scraping approach will be quite brittle. Additionally, the terms of service of most commercial search engines prohibit automated access - if you go ahead anyway they may well block your crawler. These two problems are probably why awesome third party parsing APIs don't really exist.
What you can do is to fetch data from different APIs (bing/google etc) and then display it to the user in one flow. Otherwise, crawling search engines is totally illegal.
For Google, you can go to Google Custom Search API or if you have products to search then Google Shopping API.
For Bing, there is a simple and straightforward API.
check NUTCH. Is this what you are looking for?
Bing has an open api http://www.bing.com/developers
Google gives you an api then immediately takes it away. http://code.google.com/apis/websearch/docs/
The google api is deprecated and I think they have another one that is even more limited. Once upon a time they had an API that was comparable to Bing's.
For the exact scenario you mentioned though, the best thing to do is first parse out the number of results, then keep iterating through the pages. You also need to handle errors well because Google very often lies about the number of results it contains.
i m working in same project.
Generate sitemap
private void SubmitSitemap(string PortalName)
{
//PING SEARCH ENGINES TO LET THEM KNOW WE UPDATED OUR SITEMAP
//resubmit to google
System.Net.WebRequest reqGoogle = System.Net.WebRequest.Create("http://www.google.com/webmasters/tools/ping?sitemap=" + HttpUtility.UrlEncode("http://your path'" + PortalName + "'/sitemap.xml"));
reqGoogle.GetResponse();
//resubmit to ask
System.Net.WebRequest reqAsk = System.Net.WebRequest.Create("http://submissions.ask.com/ping?sitemap=" + HttpUtility.UrlEncode("http://your path + "'/sitemap.xml"));
reqAsk.GetResponse();
//resubmit to yahoo
System.Net.WebRequest reqYahoo = System.Net.WebRequest.Create("http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=YahooDemo&url=" + HttpUtility.UrlEncode("http://yourpath/sitemap.xml"));
reqYahoo.GetResponse();
//resubmit to bing
System.Net.WebRequest reqBing = System.Net.WebRequest.Create("http://www.bing.com/webmaster/ping.aspx?siteMap=" + HttpUtility.UrlEncode("http://yourpath + "'/sitemap.xml"));
reqBing.GetResponse();
}
Generate robots.txt file and place it in your root directory.Friendly name and other issues are also imp for this purpose.
Is there a good Rich Text WYSISYG editor for C# Winform applications? Something like an embeddable wordpad?
We are using TextControl, it supports RTF, PDF DOC, DOCX an it's very easy to integrate.
You could use something from one of the major winforms framework people. I use DevExpress http://www.devexpress.com/, mostly because that also gets me Coderush and Refactor Pro at the same price.
Other options are Telerik, Infragistics, etc.
These are not free, but you get fantastic customer support. Even my non-priority questions are answered in hours, sometimes even on weekends. By answered I mean some kind of code sample showing how to accomplish a task or work around a bug till it gets fixed.
You can also test drive them before buying to make sure you like their environments and solutions.
You can use ckeditor http://ckeditor.com/.
The download package includes samples with "asp" samples that can be "adapted" for asp.net and a lots of examples of different implementations.
In the practice this editors works like a multiline "textBox" area on the server side returting to you the html source of the control.
I would recommend http://freetextbox.com/. It's free and many browsers support it (Internet Explorer 6,7,8,9, Firefox 1,2,3, Google Chrome 1,2,3,4,5 etc.).
They also have a demo and documentation to play with on their website. The community is not really active. But there are topics about installation help and son on. By the time of writing this post the last message at the forum was placed 3 days ago.