Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Java program that "surfers" the web

Thread view: 
yuvalste@hotmail.com - 08 Apr 2007 17:26 GMT
Hi
I'd like to write a JAVA program that "surfers" the web -
Today I have a site that I'm using to get some data. I'm using a user
& password to get in and retrieve the data. All of this I do manually
these days.
I'd like my program to access that web site and retrieve that data
automatically (meaning it will have to insert user & password, find
the write form and etc.)

Which classes should I be using ?
Mich - 08 Apr 2007 18:16 GMT
> Hi
> I'd like to write a JAVA program that "surfers" the web -
[quoted text clipped - 6 lines]
>
> Which classes should I be using ?

First, you need to be able to read the page and use something like
org.apache.commons.httpclient.HttpConnection
Luc The Perverse - 08 Apr 2007 18:34 GMT
> Hi
> I'd like to write a JAVA program that "surfers" the web -
[quoted text clipped - 6 lines]
>
> Which classes should I be using ?

Programs that surf the web automatically are called webcrawlers usually.

This is the top link searching google for Java Webcrawler

http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/

It includes example code.

Making a simple webcrawler first would make sense - worry about
authentication afterward.

Are you trying to retrieve all the information from the same site?

--
LTP

:)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.