WWW::PipeViewer::GetCaption - Save the YouTube closed captions as .srt files for a videoID. |
WWW::PipeViewer::GetCaption - Save the YouTube closed captions as .srt files for a videoID.
use WWW::PipeViewer::GetCaption;
my $yv_cap = WWW::PipeViewer::GetCaption->new(%opts);
my $file = $yv_cap->save_caption($videoID);
Options:
The captions data.
Where to save the closed captions.
Preferred languages. First found is saved and returned.
Find a caption data, based on the preferred languages.
Convert a list of seconds to .srt times.
Convert the XML data to SubRip format.
Save the caption in a .srt file and return its file path.
Trizen, <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
You can find documentation for this module with the perldoc command.
perldoc WWW::PipeViewer::GetCaption
Copyright 2012-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.
WWW::PipeViewer::GetCaption - Save the YouTube closed captions as .srt files for a videoID. |