WebSer...e::Util(3pm)
π WebSer...e::Util(3pm) β bestie edition π
okay so real quick, this is WebService::YouTube::Util, and yeah it lives in the User Contributed Perl Documentation section, which is exactly what it sounds like β perl people sharing their stuff, no gatekeeping π«Ά. Manual page name is WebSer...e::Util(3pm) if you're the kind of person who bookmarks things (I am. I have 400 tabs. don't perceive me π).
β¨ NAME β¨
WebService::YouTube::Util β it's a Utility for WebService::YouTube. that's the whole vibe. a lil helper bestie for the bigger module. π
πΈ VERSION πΈ
This document describes WebService::YouTube::Util version 1.0.3. iconic. she's got a number. she's official. π
π¦ SYNOPSIS π¦
okay so here's how you actually use her, copy-paste-able, no cap:
use WebService::YouTube::Util;
# Get an URI of RSS
my $uri = WebService::YouTube::Util->rss_uri( 'global', 'recently_added' );
# Get an URI of REST API
my $uri = WebService::YouTube::Util->rest_uri( $dev_id,
'youtube.videos.list_by_tag',
{ tag => 'monkey' }
);
# Get a downloadable URI
my $uri = WebService::YouTube::Util->get_video_uri('rdwz7QiG0lk');
# Get a video which type is .flv
my $content = WebService::YouTube::Util->get_video('rdwz7QiG0lk');
notice how 'monkey' is the tag in the example? taste. π
π DESCRIPTION π
This is an utility for WebService::YouTube. short. sweet. she knows her purpose. main character energy honestly. β¨
π SUBROUTINES/METHODS π
here's the whole roster, bestie, every single one:
π rss_uri( $type, $arg )
Returns a URI of RSS. $type should be 'global' or 'tag' or 'user'. and $arg is required when $type is 'tag' or 'user' β so like, don't leave her hanging, she needs it. π₯Ί
π rest_uri( $dev_id, $method, \%fields )
Returns a URI of REST API. $dev_id is your developer ID of YouTube (yes your developer ID, go get one, I believe in you π). $method is a method name like a 'youtube.*.*'. and %fields can contain optional parameter. optional! she's flexible like that. π
π get_video_uri( $video, \%args )
Returns a downloadable URI of $video. $video should be a video ID or a WebService::YouTube::Video object. %args can contain some optional arguments:
uaβ LWP::UserAgent object
π get_video( $video, \%args )
Returns a downloaded content of $video. $video should be a video ID or a WebService::YouTube::Video object. %args can contain some optional arguments:
uaβ LWP::UserAgent object
π DIAGNOSTICS π
when things go sideways, here's what she yells at you:
type of ... is not supportedβ No such RSS. The type should be'global'or'tag'or'user'. (basically: girl, that's not one of the three options. read the room. π)got a page but it is invalid pageβ Maybe, YouTube is being maintained.:-)β yes that smiley is in the original and honestly it's sending me π. not her fault, YouTube's just down bad.
π CONFIGURATION AND ENVIRONMENT π
WebService::YouTube::Util requires no configuration files or environment variables. zero setup. plug and play. the way I LOVE a low-maintenance module. π«Άβ¨
π§ DEPENDENCIES π§
she's not doing this alone, she has a support system:
WebService::YouTubeLWP::UserAgentURI::Escape
π INCOMPATIBILITIES π
None reported. no beef. no drama. we love a peaceful queen. ποΈ
π BUGS AND LIMITATIONS π
No bugs have been reported. (suspiciously perfect? no, she's just built different. π )
Please report any bugs or feature requests to bug-webservice-youtube@rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-YouTube>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. β okay so like, it's a whole notification pipeline, you'll be kept in the loop, that's the deal, fr fr. π¬
β AUTHOR β
Hironori Yoshida <yoshida@cpan.org>
π LICENSE AND COPYRIGHT π
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. so like, take her, share her, remix her, just keep the same energy. πΈ
and that's the whole page bestie, we made it π β shoutout to perl v5.32.0, dated 2021-01-07, on WebSer...e::Util(3pm). go forth and pull them YouTube RSS feeds, ily, bye ππ¦β¨
π¦ where this page comes from
- debian bookworm: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwebservice-youtube-perl 1.0.3-4.1 Β· 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