XML::R...rlJobs(3pm)
π NAME π
XML::RSS::Headline::PerlJobs β bestie, it's literally the XML::RSS::Headline Example Subclass. That's the whole job description. That's it. β¨
π VERSION π
2.2 β yes queen, we're on version 2.2 π
πΈ SYNOPSIS πΈ
okay so here's the tea: you can also subclass XML::RSS::Headline to give yourself a 'multiline' RSS headline built from extra info living inside the RSS Feed. π¦
And the way you do it? Literally just pass in the hlobj class name. That's the whole trick, no cap. Here's the example for the Perl Jobs (jobs.perl.org) RSS feed:
use XML::RSS::Feed;
use XML::RSS::Headline::PerlJobs;
use LWP::Simple qw(get);
my $feed = XML::RSS::Feed->new(
name => "perljobs",
url => "http://jobs.perl.org/rss/standard.rss",
hlobj => "XML::RSS::Headline::PerlJobs",
);
while (1) {
$feed->parse(get($feed->url));
print $_->headline . "\n" for $feed->late_breaking_news;
sleep($feed->delay);
}
And here's what the output looks like when rssbot is doing its thing on irc.perl.org in channel #news (which uses these very modules, iconic behavior honestly):
<rssbot> + Part Time Perl
<rssbot> Brian Koontz - United States, TX, Dallas
<rssbot> Part time, Independent contractor (project-based)
<rssbot> http://jobs.perl.org/job/950
π MUTAITED METHOD π
(yes bestie, that heading is spelled exactly like that, we do not fix it, we respect the ancestors π)
π $headline->item( $item )
This one inits the object for a parsed RSS item that got handed back to you by XML::RSS. Slay. β¨
π AUTHOR π
Jeff Bisbee, <jbisbee at cpan.org> β the actual main character π«Ά
π BUGS π
Found a bug? Want a feature? Please report that 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>
Here's the deal though: I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. So like, you're not screaming into the void, periodt. π£
π SUPPORT π
You can find the docs for this module with the perldoc command, easy:
perldoc XML::RSS::Headline::PerlJobs
You can also look for information at these places, go off:
- 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 so real of you fr fr. π
β 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::Feed, XML::RSS::Headline, XML::RSS::Headline::Fark, XML::RSS::Headline::UsePerlJournals, POE::Component::RSSAggregator
k bye bestie!! πβ¨
this little page is a User Contributed Perl Documentation situation, running under perl v5.32.1, dated 2021-12-26 β the file itself is XML::R...rlJobs(3pm) if you were wondering where you even are rn. go forth and headline, mwah ππ¦π
π¦ 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