XML::R...ournals(3pm)
β¨ NAME β¨
okay so this is the manual page for XML::RSS::Headline::UsePerlJournals π β and it's literally an example subclass of XML::RSS::Headline, bestie. it ships as part of the XML::RSS::Feed family, and it lives in the 3pm section of your perl man pages (that's the "perl module" section, iykyk).
πΈ VERSION πΈ
2.2 β that's the one, no cap.
π SYNOPSIS π
bestie, plot twist: you can also subclass XML::RSS::Headline to tweak the RSS content however you like. β¨ In this example, the headline gets changed so it drops the date/time and adds the Use Perl Journal author's ID instead. Also, in this use Perl; rss feed you get the actual link to the journal entry, rather than just the link to the user's journal. (which means the journal URLs contain the entry's ID, periodt.)
use XML::RSS::Feed;
use XML::RSS::Headline::UsePerlJournals;
use LWP::Simple qw(get);
my $feed = XML::RSS::Feed->new(
name => "useperljournals",
hlobj => "XML::RSS::Headline::UsePerlJournals",
delay => 60,
url => "http://use.perl.org/search.pl?tid=&query=&"
. "author=&op=journals&content_type=rss",
);
while (1) {
$feed->parse(get($feed->url));
print $_->headline . "\n" for $feed->late_breaking_news;
sleep($feed->delay);
}
and here's the actual output from rssbot on irc.perl.org in channel #news (which uses these modules, slay):
<rssbot> + [pudge] New Cool Journal RSS Feeds at use Perl;
<rssbot> http://use.perl.org/~pudge/journal/21884
π MUTAITED METHOD π
(yes, it's spelled that way in the original, and honestly? iconic. we keep it. π«Ά)
$headline->item( $item )
this inits the object for a parsed RSS item that got returned by XML::RSS. that's the whole job. π
π AUTHOR π
Jeff Bisbee, <jbisbee at cpan.org> π
π BUGS π
found a bug or wanna request a feature? please report it to bug-xml-rss-feed at rt.cpan.org, or slide through the web interface at:
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-RSS-Feed
Jeff gets notified, and then you'll automatically get notified of progress on your bug as changes get made. so like, you're not gonna be left on read, fr fr. β¨
π SUPPORT π
you can find documentation for this module with the perldoc command:
perldoc XML::RSS::Headline::UsePerlJournals
you can also look for info at these places, bestie:
- AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/XML-RSS-Feed - CPAN Ratings
http://cpanratings.perl.org/d/XML-RSS-Feed - RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-RSS-Feed - Search CPAN
http://search.cpan.org/dist/XML-RSS-Feed
π«Ά ACKNOWLEDGEMENTS π«Ά
special thanks to Rocco Caputo, Martijn van Beers, Sean Burke, Prakash Kailasa and Randal Schwartz for their help, guidance, patience, and bug reports. Guys β thanks for actually taking time to use the code and give good, honest feedback. ππ that's the whole vibe, honestly.
π COPYRIGHT & LICENSE π
Copyright 2006 Jeff Bisbee, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
XML::RSS::FeedXML::RSS::HeadlineXML::RSS::Headline::PerlJobsXML::RSS::Headline::FarkPOE::Component::RSSAggregator
and that's a wrap, bestie π this page is from perl v5.32.1, dated 2021-12-26, filed under XML::R...ournals(3pm) in the User Contributed Perl Documentation. go forth and aggregate those feeds π
β¨
π¦ where this page comes from
- debian bookworm: libxml-rss-feed-perl 2.212-1.4
- ubuntu jammy: libxml-rss-feed-perl 2.212-1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms