WWW::Y...Videos(3pm)
okay bestie, meet WWW::YoutubeViewer::Videos β the videos handler, and it's lowkey iconic. π
β¨
π NAME π
WWW::YoutubeViewer::Videos β videos handler. That's the whole vibe: videos handler. π
β¨ SYNOPSIS β¨
Here's the starter pack, literally:
use WWW::YoutubeViewer;
my $obj = WWW::YoutubeViewer->new(%opts);
my $info = $obj->video_details($videoID);
π SUBROUTINES/METHODS π
okay so here's the method lineup, and no, we are not skipping any of them β every single one is getting its moment. π
πΈ videos_from_category($category_id)
Grab videos from a category ID. π¬
πΈ trending_videos_from_category($category_id)
Grab popular videos from a category ID. π₯
πΈ popular_videos($channel_id)
Grab the most popular videos for a given channel ID. π
πΈ oldest_videos($channel_id)
Grab the most oldest videos for a given channel ID. π°οΈ
πΈ my_likes()
Grab the videos liked by the authenticated user. π
πΈ my_dislikes()
Grab the videos disliked by the authenticated user. π
πΈ send_rating_to_video($videoID, $rating)
Send rating to a video. $rating can be either 'like' or 'dislike'. π
πΈ like_video($videoID)
Like a video. Returns true on success. π«Ά
πΈ dislike_video($videoID)
Dislike a video. Returns true on success. π
πΈ videos_details($id, $part)
Get info about a videoID, such as: channelId, title, description, tags, and categoryId.
Available values for part are literally: id, snippet, contentDetails player, statistics, status and topicDetails.
$part string can contain more values, comma-separated.
Example:
part => 'snippet,contentDetails,statistics'
When $part is "undef", it defaults to snippet.
π Return details π
Each function returns a HASH ref, with a key called 'results', and another key, called 'url'.
The 'url' key contains a string, which is the URL for the retrieved content.
The 'results' key contains another HASH ref with the keys 'etag', 'items' and 'kind'. From the 'results' key, only the 'items' are relevant to us. This key contains an ARRAY ref, with a HASH ref for each result. Examples of the item array's content are shown below. π¦
β¨ video_contentDetails($videoID) β¨
items => [
{
contentDetails => {
caption => "false",
definition => "sd",
dimension => "2d",
duration => "PT1H20M10S",
licensedContent => bless(do{\(my $o = 0)}, "JSON::XS::Boolean"),
},
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/KU_bqVk91zBQGXrMtEDZgkQMkhU\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
},
]
β¨ video_id($videoID) β¨
items => [
{
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/bvAWXfDY4QPsx_UgtmMPFcxPLQc\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
},
],
β¨ video_player($videoID) β¨
items => [
{
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/nr03GopgH8bb755ppx5BA_1VsF8\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
player => {
embedHtml => "<iframe type='text/html' src='https://www.youtube.com/embed/f6df3s3x3zo' width='640' height='360' frameborder='0' allowfullscreen='true'/>",
},
},
],
β¨ video_statistics($videoID) β¨
items => [
{
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/j01_qxKqxc3BMrFBbX2eiPWkAmo\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
statistics => {
commentCount => 2,
dislikeCount => 1,
favoriteCount => 0,
likeCount => 5,
viewCount => 174,
},
},
],
β¨ video_status($videoID) β¨
items => [
{
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/jaa690eVtSvHTYRSSPD3mc1mlIY\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
status => {
embeddable => bless(do{\(my $o = 1)}, "JSON::XS::Boolean"),
license => "youtube",
privacyStatus => "public",
uploadStatus => "processed",
},
},
],
β¨ video_topicDetails($videoID) β¨
items => [
{
etag => "\"5cYuq_ImPkYn_h2RKDdX8DHvM2g/XnxCuOGwiR8MNhH-iHNxHB-ROWM\"",
id => "f6df3s3x3zo",
kind => "youtube#video",
topicDetails => { topicIds => ["/m/0126n", "/m/0jpv", "/m/07h44"] },
},
],
πΈ AUTHOR πΈ
This masterpiece is by Trizen, "<echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>". π«Ά
π«Ά SUPPORT π«Ά
You can find documentation for this module with the perldoc command.
perldoc WWW::YoutubeViewer::Videos
π LICENSE AND COPYRIGHT π
Copyright 2013-2015 Trizen.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See https://dev.perl.org/licenses/ for more information.
mwah π
β this page is from perl v5.42.2, dated 2026-02-15, and it's the WWW::Y...Videos(3pm) manual. Bye bestie, go watch some videos! ππ¦
π¦ where this page comes from
- alpine 3.24: youtube-viewer-doc 3.11.6-r1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms