- dom
- find
- Mojo::DOM
- Mojo::Collection
CSS Selectors
examples/ua/get_yapcna_select_h1.pl
use strict; use warnings; use Mojo::UserAgent; my $ua = Mojo::UserAgent->new; print $ua->get('http://www.yapcna.org/yn2016/') ->res->dom->find('div[class=row h1]')->[0];
- dom returns a Mojo::DOM
- find returns a Mojo::Collection