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 default => \&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
37 First create a WWW::EZTV object to navigate.
41 my $eztv = WWW::EZTV->new;
43 my $show = $eztv->find_show(sub{ $_->name =~ /Walking dead/i });
45 my $episode = $show->find_episode(sub{
48 $_->quality eq 'standard'
60 L<Mojo::Collection> of L<WWW::EZTV::Show> objects.
64 How many shows exists.
68 Find first L<WWW::EZTV::Show> object matching the given criteria.
69 This method accept an anon function.