[sf-lug] OT - Perl / CPAN question

Deirdre Saoirse Moen deirdre at deirdre.net
Tue Apr 4 11:32:29 PDT 2006


On Apr 4, 2006, at 11:22 AM, kevin.kempter at dataintellect.com wrote:

> Hi List;
>
> Sorry for the OT post but I could not find a relevent perl list.
>
> I want to create a perl process that will go to a specified list of  
> web pages
> and retrieve the data for each page so i can parse it. Ideally, the  
> perl
> process would download the requested web pages in XML format.

Very few html pages will be XML-compliant, even those served as xhtml.

I don't know perl, but I believe ruby's Net::HTTP was modeled upon  
some perl module or another.

process in ruby:

require 'net/http'
   @domain = 'http://deirdre.net/'
   ...
   @content = Net::HTTP.get(URI.parse("#{@domain}pages/show/# 
{@page.id}"))

-- 
_Deirdre                                             http://deirdre.net






More information about the sf-lug mailing list