-5

How do i input a keyword into a search engine (yahoo, bing, Google) using c++ program

Is it possible to run it on backend without browser appearing/booting. If yes, how? If not, how can i do it? Do i have to refer to api's/ libraries of browser and search engines?

user3809384
  • 111
  • 1
  • 4
  • 10
  • What exactly do you want? Use the result from the search engine or show the search in the browser? – Mads Jul 13 '14 at 15:34
  • @Mads I want to extract urls and page sources out of returned page result searches from search engines, but in order to do that i need to first allow user to input their search keyword, thus the question. – user3809384 Jul 14 '14 at 05:15

1 Answers1

2

My answer is I believe so:

If you can use a library that allows you to send HTTP requests to an URL, then you should be able to do it simply by loading the webpage at url: http://www.google.com/?#q=your+query+here and parse/display the XML/HTML yourself.

I have never actually used C++ to do anything like that, but one of these links might be a good starting place.

Community
  • 1
  • 1
Stian Svedenborg
  • 1,797
  • 11
  • 27