Advertisement

Extracting information from webpages in C/C++ or Java

Started by September 04, 2005 07:22 PM
1 comment, last by Toadhead 19 years, 5 months ago
I would like to know the easiest way to access and manipulate string data from webpages. I want to write a quick and dirty app to grab infromation from sites. This may involve sending a search term through a from object and storing the results. The only catch is I need a suggestion that I can implement in C/C++ or Java as they're the only languages I know. So basicaly: 1) Access webpage (ie google.com) 2) plug search term 3) access first hit 4) dump to file I apologise if this is too general or noobish but I dont have much experience coding for the web. In fact the last time I did any socket/network programming was in VB6 and that was 5 years ago when I was 14 :) I appreciate any help.
http-get lets you get web pages from URLs. To get the first hit off Google, you'd probably just want to use "I'm Feeling Lucky". Take a look at the URL you get sometime.
enum Bool { True, False, FileNotFound };
Advertisement
"To get the first hit off Google, you'd probably just want to use "I'm Feeling Lucky". Take a look at the URL you get sometime."

Indeed :)



http://www.google.com/search?hl=en&q=*****&btnI=I%27m+Feeling+Lucky
...were ***** is the search keysword(s)


This topic is closed to new replies.

Advertisement