Extracting information from webpages in C/C++ or Java
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 };
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement