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
42 my $eztv = WWW::EZTV->new;
45 my $show = $eztv->find_show(sub{ $_->name =~ /Walking dead/i });
48 my $episode = $show->find_episode(sub{
51 $_->quality eq 'standard'
54 # Get first torrent url for this episode
55 say $episode->find_link(sub{ $_->type eq 'torrent' })->url;
71 L<Mojo::Collection> of L<WWW::EZTV::Show> objects.
77 How many shows exists.
83 Find first L<WWW::EZTV::Show> object matching the given criteria.
84 This method accept an anon function.
90 This is an early release, so probable there are plenty of bugs around.
91 If you found one, please report it on RT or at the github repo:
93 L<https://github.com/diegok/www-eztv>
95 Pull requests are also very welcomed, but please include tests demostrating