|
Need guidance regarding a program
Hello Sir,
I am making an program in Java in which from an existing website
i want to fetch the contents of the page & store it in a database table
using JDBC.
Its like, using the URL class of java.net.* package I am calling
a particular URL & opening a connection to it using URLConnection
class.
Now what am i trying to do is in the web page there are particular main
sections having particular information regarding that section(for e.g
Computers,Notebooks,Tablets,etc).
Computers Notebooks Tablets
Detail11 Detail21 Detail31
Detail12 Detail22 Detail32
Detail13 Detail23 Detail33
Detail14 Detail24 Detail34
All the details12,12 ,13, 14,etc are hyperlinks
Now for each main section the detailed information is provided in the
form of a hyperlink which when clicked displays the information about
that particular section.
So what i want to do is fetch the contents of a particular section's
each hyperlink provided & parse that contents & store them in a
database table.
So how to approach regarding this using only Core Java API.
Waiting for the reply.
Thanking you,
Jignesh
|