Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get results from search engine?

Status
Not open for further replies.

cjtaylor

Programmer
Aug 12, 2001
69
0
0
US
Does anyone know the general route on how to send a search query to a search engine and then get the results, so I can parse the data in my app.

Any pointers would be appreciated

Chris Taylor
 
Here's how I did it:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String A = "String B = Edit1->Text;
String C = "&FORM=SMCRT&cfg=SMCINITIAL&v=1&un=doc";
String Address = A + B + C;
CppWebBrowser1->Navigate(WideString(Address));
}

basically all you have to do is go to you favorite search engines and steal the part in "String A"!
 
Beautiful, that worked perfectly. My only question is what does the info in string c represent?

String C = "&FORM=SMCRT&cfg=SMCINITIAL&v=1&un=doc";

does each search engine have it different format?

Thanks
 
No but they may have a differant "String A"!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top