Connecting Tech Pros Worldwide Forums | Help | Site Map

Extracting Data From Website into Database

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 31 '07
i jst wanna knw how do i extract data for eg.links or titles frm a webage into a database using Perl

KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Jul 31 '07

re: Extracting Data From Website into Database


Look into HTML::TokeParser (or other module) to get the desired tag/data from the html document. Can't advise you on how to put it in a databse as that question is too broad in scope. Any particular database you are thinking of using?

cpan HTML::TokeParser
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#3: Jul 31 '07

re: Extracting Data From Website into Database


Quote:

Originally Posted by pisces20

i jst wanna knw how do i extract data for eg.links or titles frm a webage into a database using Perl

I agree with Kevin with regards to HTML::TokenParser or one of the related modules. If you are going to interact with a database, you will want to look into using the DBI module. Regardless of which database you choose to work with, it can interface with it via its built-ins.

Also, when posting, it is a good idea to post the code that you have already tried thus far so that we can help you troubleshoot it and tweak it into a working state. That said, what have you tried?

Regards,

Jeff
Reply