XML::RSS:Tools might of use for you. It uses an XSLT style sheet to generate output from the data in the RSS.
use XML::RSS::Tools;
my $feed = 'http://rss.example.com/';
my $xslt = '/path/to/stylesheet';
my $rss = XML::RSS::Tools->new;
if ($rss->rss_uri($feed) &&
$rss->xsl_file($xslt) &&
$rss->transform)
{
print $rss->as_string
} else {
print $rss->as_string('error')
};
Another possibility is XML::Feed which would give you a "programmatic" approach to generating your output.
use XML::Feed;
my $feed = XML::Feed->parse(URI->new($feed))
or die XML::Feed->errstr;
for my $entry ($feed->entries) {
# extract info from entry and generate output
}
There seems to be quite a few others on CPAN, but of the few I looked at, these seemed the simplest to use.
Side comment: I would be dubious of automatically creating tickets from any RSS feed. Even with very good filtering, you can still end up with a lot of "noise tickets" to explain to your managers.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|