Skip to content
Extract metadata out of ARD Tagesschau vlog webpages
Perl
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/Tagesschau/Video
t
.travis.yml
Changes
MANIFEST
META.json
META.yml
Makefile.PL
README

README

NAME
    Tagesschau::Video::Asset - Extract download links from articles

SYNOPSIS
      use Tagesschau::Video::Asset;

      my $obj = Tagesschau::Video::Asset(asset_url => <link to vlog);
      my $asset = $obj->extract;

DESCRIPTION
    The `Tagesschau::Video::Asset' is a class for extracting meta data out
    of their video blog posts for easier downloading or building RSS feeds
    with links to the video streams in it.

    This class is intented to provide a working example for the module
    `Web::Scraper'. As the webpage is in German it may be a problem for
    foreign speakers. I've included a stripped down asset html file inside
    the `t' folder.

CONSTRUCTOR ATTRIBUTES
    In order to extract any value from the webpage the class needs to know
    what file or URL is should parse.

    asset_url
        The attribute `asset_url' takes an URL to the webpage which should
        be extracted. This could be the value of an URI such as http:// or
        file://.

METHODS
    extract()
        The method extract calls the URI which has been passed as
        `asset_url' to the constructor. If the call succeeds you'll get a
        HASH reference with the data back. If the call fails or if one of
        the data elements is missing, e.g. due to a changed web page you'll
        get an exception back.

        Here is the data structure:

          $VAR1 = {
                    'formats' => [
                                 {
                                   'link' => '...',
                                   'format' => '...'
                                 },
                                 {
                                   'link' => '...',
                                   'format' => '...'
                                 }
                               ],
                  'timestamp' => '...',
                  'story' => '...',
                  'headline' => '...'
                };

SEE ALSO
    See Web::Scraper for the module which powers everything with CSS
    selectors. Please check my blog post for an explanation at Blog. Please
    check the website of the German Tagesschau for more examples in their
    video blog section.

COPYRIGHT
    Copyright 2013 Ulrich Habel

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

Something went wrong with that request. Please try again.