Jump to content
  • Advertisement
Sign in to follow this  
eben

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

This topic is 4643 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
"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)


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!