Fragile :) It breaks as soon as he changes layout/format. Or at least has the potential to break - some layouts don't even use the div.
Splitting the RSS feed is the way to go.
my $content = get("http://livejournal.com/users/ronebofh/rss");
Then split on "", chop off everything after , de-htmlise as you do, and you're good to go. Though I'd run it through HTML::Parser to expand the entities rather than trusting to , and I'd use an XML parser anyway.
Re: No problemo!
Date: 2004-01-14 08:25 pm (UTC)It breaks as soon as he changes layout/format. Or at least has the potential to break - some layouts don't even use the div.
Splitting the RSS feed is the way to go.
my $content = get("http://livejournal.com/users/ronebofh/rss");
Then split on "", chop off everything after , de-htmlise as you do, and you're good to go. Though I'd run it through HTML::Parser to expand the entities rather than trusting to , and I'd use an XML parser anyway.
sol.
.