MozRepl::Plugin::LinkExtor - Extract "a" and "link" elements.


MozRepl-Plugin-LinkTools documentation  | view source Contained in the MozRepl-Plugin-LinkTools distribution.

Index


NAME

Top

MozRepl::Plugin::LinkExtor - Extract "a" and "link" elements.

VERSION

Top

version 0.01

SYNOPSIS

Top

    use MozRepl;
    use Data::Dump qw(dump);

    my $repl = MozRepl->new;
    $repl->setup({ plugins => { plugins => [qw/JSON OpenNewTab LinkExtor/] } });

    $repl->open_new_tab({ url => "http://search.cpan.org/", selected => 1 });

    sleep(5);

    my $links = $repl->linkextor();

    print dump($links);

DESCRIPTION

Top

Add linkextor() method to MozRepl.

METHODS

Top

execute($ctx, $args)

$ctx

Context object. See MozRepl.

$args

Hash reference. See below detail.

all

Default 0. If this value is 1, then extracting links from all tabs.

AUTHOR

Top

Toru Yamaguchi, <zigorou@cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-mozrepl-plugin-linkextor@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


MozRepl-Plugin-LinkTools documentation  | view source Contained in the MozRepl-Plugin-LinkTools distribution.