Wiki::...Reader(3pm)
β¨ NAME β¨
Wiki::Toolkit::Plugin::RSS::Reader β bestie, this lil cutie goes and grabs RSS feeds for you so you can drop them right into Wiki::Toolkit nodes π
πΈ DESCRIPTION πΈ
Okay so picture this: you've got a wiki, you want a feed living inside a node, and you don't wanna hand-copy headlines like some kind of medieval scribe. Enter this Wiki::Toolkit plugin. It reaches out to a URL you give it, scoops up an RSS feed, and hands it to you ready to be included in a wiki node. Iconic behaviour, no cap. π¦
β¨ SYNOPSIS β¨
use Wiki::Toolkit::Plugin::RSS::Reader;
my $rss = Wiki::Toolkit::Plugin::RSS::Reader->new(
url => 'http://example.com/feed.rss'
);
my @items = $rss->retrieve;
three whole lines and the feed is yours π
π USAGE π
So this is a plugin for Wiki::Toolkit, which is, yk, a toolkit for building wikis. Because of that, please go read the Wiki::Toolkit documentation for the relevant info β it's giving "do your homework first" πβ¨
That saidβ¦ this module can totally be used standalone if you want to. Main character energy, standing on its own two feet π«Ά
π METHODS π
new
my $rss = Wiki::Toolkit::Plugin::RSS::Reader->new([options]);
Make a brand new RSS reader, fresh out the box π
The valid options are url or file (and file is a path to an RSS file). Only one of them can be specified β pick a lane, bestie, you can't have both π
retrieve
my @items = $rss->retrieve;
retrieve hands you back an array of hashes β one hash per item in the RSS feed π Each one of those hashes contains three things: title, link, and description. That's the whole vibe check β
Now for the part where we're real with each other: if the URL or file you specified can't be retrieved or read, retrieve will return undef instead of blowing up and surprising whoever's reading your wiki. Very demure, very mindful π
But if you want the drama? You can set debug to 1 in the options you pass to new, and then the module will croak instead of failing silently. Loud and proud, no secrets ππ₯
π AUTHOR π
Earle Martin (EMARTIN@cpan.org) and The Wiki::Toolkit team, (http://www.wiki-toolkit.org/) π
β LEGAL β
Copyright 2004 Earle Martin. Copyright 2006 the Wiki::Toolkit team.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. free as in freedom, slay ποΈ
okay that's the whole page bestie, go forth and fetch those feeds π
This was perl v5.34.0, dated 2022-06-28, and you've been reading Wiki::...Reader(3pm) β User Contributed Perl Documentation, mwah π
π¦ where this page comes from
- debian bookworm: libwiki-toolkit-plugin-rss-reader-perl 1.6-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwiki-toolkit-plugin-rss-reader-perl 1.6-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwiki-toolkit-plugin-rss-reader-perl 1.6-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwiki-toolkit-plugin-rss-reader-perl 1.6-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwiki-toolkit-plugin-rss-reader-perl 1.6-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms