WWW::PipeViewer::InitialData(3p)

NAME
WWW::PipeViewer::InitialData - Extract initial data from YouTube pages.

SYNOPSIS
    use WWW::PipeViewer;
    my $obj = WWW::PipeViewer->new(%opts);

    my $results   = $obj->yt_search(q => $keywords);
    my $playlists = $obj->yt_channel_created_playlists($channel_ID);

DESCRIPTION
This module provides methods for extracting and parsing YouTube data from initial page data and API responses.

  yt_video_info($id)
Get video info for a given YouTube video ID by scraping the YouTube watch page.

  yt_search(q => $keyword, %args)
Search for videos given a keyword string (uri-escaped).

  yt_channel_search($channel, q => $keyword, %args)
Search for videos given a keyword string from a channel ID or username.

  yt_channel_uploads($channel, %args)
Latest uploads for a given channel ID or username.

For popular videos, use: sort_by => 'popular'

  yt_channel_streams($channel, %args)
Latest streams for a given channel ID or username.

For popular streams, use: sort_by => 'popular'

  yt_channel_shorts($channel, %args)
Latest short videos for a given channel ID or username.

For popular shorts, use: sort_by => 'popular'

  yt_channel_info($channel, %args)
Channel info (such as title) for a given channel ID or username.

  yt_channel_title($channel, %args)
Extract the channel title (as a string) for a given channel ID or username.

  yt_channel_id($username, %args)
Extract the channel ID (as a string) for a given channel username.

  yt_channel_created_playlists($channel, %args)
Playlists created by a given channel ID or username.

  yt_channel_all_playlists($channel, %args)
All playlists for a given channel ID or username.

  yt_playlist_videos($playlist_id, %args)
Videos from a given playlist ID.

  yt_playlist_next_page($url, $token, %args)
Load more items from a playlist, given a continuation token.

  yt_browse_request($url, $token, %args)
Make a browse request to the YouTube API with a continuation token.

  yt_search_next_page($url, $token, %args)
Load more search results, given a continuation token.

AUTHOR
Trizen, "<echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>"

SUPPORT
You can find documentation for this module with the perldoc command.

    perldoc WWW::PipeViewer::InitialData

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.