SoggyOnion::Plugin::ImageScraper - get images from a page


SoggyOnion documentation  | view source Contained in the SoggyOnion distribution.

Index


NAME

Top

SoggyOnion::Plugin::ImageScraper - get images from a page

SYNOPSIS

Top

In config.yaml:

    layout:
      - title: Comic Strips
        name:  comics.html
        items:
          - images: http://www.myfavoritestrip.com/
            id:  myfavoritestrip
            offset: 4
            limit: 1

DESCRIPTION

Top

This is a plugin for SoggyOnion that grabs a series of <IMG> tags from a URI and adds them to the SoggyOnion output page.

Item Options

* images - the URI of the page to scrape the image(s) from
* id - the item ID that appears in the HTML <DIV> tag
* offset - (optional) the index of the first image, default is 0 (first image)
* limit - (optional) how many images to show past the offset, default is 1
* prefix - (optional) prefix the output URI of the image with this. By default, checks the IMG SRC. If it's relative it prepends the prefix if you set it or the URI specified with images.

SEE ALSO

Top

SoggyOnion

AUTHOR

Top

Ian Langworth, <ian@cpan.org>

COPYRIGHT AND LICENSE

Top


SoggyOnion documentation  | view source Contained in the SoggyOnion distribution.