WWW::Noss::OPML(3)
π¦ WWW::Noss::OPML π
okay so bestie, welcome to the WWW::Noss::OPML page β a fine piece of User Contributed Perl Documentation, and your new fav little module for reading and writing OPML files β¨
πΈ NAME πΈ
WWW::Noss::OPML β OPML file reader/writer π
β¨ USAGE β¨
ok so here's the whole vibe, no cap:
use WWW::Noss::OPML;
my $opml = WWW::Noss::OPML->from_perl(
title => 'Name',
feeds => [ { ... }, ... ],
);
$opml->to_file('path/to/xml');
# Read from file
$opml = WWW::Noss::OPML->from_xml('path/to/xml');
like, make one, write it out, read it back. iconic behavior honestly π
π DESCRIPTION π
WWW::Noss::OPML is a module that gives you an interface for reading and writing OPML files. and like β heads up bestie β this is a private module π so if you want the actual user docs, go consult the noss manual instead, iykyk π«Ά
π§ METHODS π§
$opml = WWW::Noss::OPML->from_perl(%param)β makes a brand newWWW::Noss::OPMLobject out of the params you hand it in the%paramhash π«
here's the list of valid fields for that %param hash. and listen β the only required field is "title" β
titleβ the title string for the OPML file, periodt.feedsβ an array ref of outline feed hashes. each hash should look something like this:
{
title => ..., # required
xml_url => ..., # required
text => ...,
html_url => ...,
groups => [ ... ],
}
like, title and xml_url are required (no skipping those bestie), the rest are optional π
$opml = WWW::Noss::OPML->from_xml($file)β create aWWW::Noss::OPMLobject from the OPML file you give it. read it and weep π₯Ή$dom = $opml->to_xml([ %param ])β returns anXML::LibXML::DocumentDOM object that represents the object. so DOM-y β¨
%param is an optional hash of extra params to configure the converted XML structure. valid values are:
foldersβ boolean determining whether to include outline folders in the XML structure. defaults to true. (also yes, the original spells it "strucutre" β we love a typo moment π)
$file = $opml->to_file($file, [ %param ])β writes the OPML object's XML structure out to$file. returns$fileon success, and dies on failure π
%param is an optional hash of extra params β it accepts the same options as to_xml().
$fh = $opml->to_fh($fh, [ %param ])β writes the OPML object's XML structure to the$fhfile handle. returns$fhon success, and dies on failure π
%param is an optional hash of extra params β same options as to_xml(), again.
$title = $opml->title()/$opml->set_title($title)β getter/setter for the OPML'stitleattribute. get it, set it, slay π\@feeds = $opml->feeds()/$opml->set_feeds(\@feeds)β getter/setter for the OPML'sfeedsattribute π$rn = $opml->rename_group($old, $new)β walks through every feed's group list and renames the group$oldto$new. returns the number of groups renamed π₯
π AUTHOR π
Written by Samuel Young, <samyoung12788@gmail.com>.
This project's source lives on its Codeberg page <https://codeberg.org/1-1sam/noss.git>. comments and pull requests are welcome! (yes fr fr, come thru π«Ά)
π COPYRIGHT π
Copyright (C) 2025-2026 Samuel Young
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
bestie that's the license text, keep it exactly as-is, it's giving legally binding π
π SEE ALSO π
XML::LibXML::Document, noss β go check 'em out β¨
and that's the whole page, bestie π¦π β brought to you by perl v5.42.2, dated 2026-02-15, straight off the WWW::Noss::OPML(3) page. mwah π
π¦ where this page comes from
- alpine 3.24: perl-www-noss-doc 2.02-r1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms