6 # ABSTRACT: EZTV scrapper
8 has url => ( is => 'ro', lazy => 1, default => sub { Mojo::URL->new('http://eztv.it/') } );
9 has url_shows => ( is => 'ro', lazy => 1, default => sub { shift->url->clone->path('/showlist/') } );
14 builder => '_build_shows',
23 $self->get_response( $self->url_shows )->dom->find('table.forum_header_border tr[name="hover"]')->map(sub {
25 my $link = $tr->at('td:nth-child(1) a');
27 title => $link->all_text,
28 url => $self->url->clone->path($link->attrs('href')),
29 status => lc($tr->at('td:nth-child(2)')->all_text),
30 rating => $tr->at('td:nth-child(3)')->all_text
39 First create a WWW::EZTV object to navigate.
43 my $eztv = WWW::EZTV->new;
45 my $show = $eztv->find_show(sub{ $_->name =~ /Walking dead/i });
47 my $episode = $show->find_episode(sub{
50 $_->quality eq 'standard'
67 L<Mojo::Collection> of L<WWW::EZTV::Show> objects.
73 How many shows exists.
79 Find first L<WWW::EZTV::Show> object matching the given criteria.
80 This method accept an anon function.
86 This is an early release, so probable there are plenty of bugs around.
87 If you found one, please report it on RT or at the github repo:
89 L<https://github.com/diegok/www-eztv>
91 Pull requests are also very welcomed, but please include tests demostrating