InterviewSolution
Saved Bookmarks
| 1. |
Solve : HOW TO SEARCH SITES WITH A DESKTOP APPLICATION? |
|
Answer» Hi to all of you, I want to make a desktop application that can search databases of search engines Search engines offer web interfaces to search their databases, but I'm fairly very certain the search companies are not going to allow direct connections to their databases with homegrown code. You can write your own front-end but you'll still need to go through the website for the actual search. You can also write your own back-end and scrape the web data for analysis. Get back to us on how you see your application in action. thanks sidewinder for you response. I want to make a desktop application which has a user input for keyword typing. then the user will press the search button and the application begin search all the websites such as google,yahoo,msn etc. After SEARCHING the websites, application should be able to display rank of a keyword on different site. Can I do so ? thanks.You could utilize web services to accomplish this. Here is a small tutorial on using the Google Search web service. http://blogs.msdn.com/coding4fun/archive/2006/10/31/912079.aspx And here is Google's own reference guide for the SOAP API. http://code.google.com/apis/soapsearch/reference.html Then you just need to find out if the other search engines you want to utilize provides similar APIs. Here is ONE for Yahoo. http://developer.yahoo.com/search/well if you are talking about what i think you are talking about(getting the input on a seach resoult page) then you should do this(you need a text box and a command button), Code: [Select]Private Sub Command1_Click() Dim Website As String 'Dim the variable website as a string Dim s As String s = Text1.Text Website = "http://www.google.com/search?hl=en&q=" & (Text1.Text) & "&btnG=Google+Search" 'store the information from text1 text into the variable Webiste ShellExecute Me.hwnd, "open", Website, vbNullString, vbNullString, vbNormal 'Open your default BROWSER and 'call the Api. End Sub this will just start your default web browser and find what you typed in google, when someone presses search on google, it goes to this Code: [Select]"http://www.google.com/search?hl=en&q=(What ever you typed in the search box)&btnG=Google+Search" its basic input. hope this helped but all you do is go to a search engine, type in whatever, and press search. check the address BAR, and copy it except what you typed in.thank you Batchfilebasics, But, i want to search on google and other search engines to get ranking for keywords, that I will type in a text box. And get the ranking of a keyword on a search site.oh, hmmm....why dont you try makeing a web browser? they are pretty easy to makehi, I can make a web browser, but how can I check the rankings of keywords? can you help me. thanks |
|