XML::R...ournals(3pm)

πŸ“¦
version 2.212 Β· 4 versions
, in debian bookworm, ubuntu jammy

✨ 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:


🫢 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 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::Feed
  • XML::RSS::Headline
  • XML::RSS::Headline::PerlJobs
  • XML::RSS::Headline::Fark
  • POE::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