my $div = scraper { process 'span[itemprop="thumbnail"] > link', url => '@href'; }; my $res = $div->scrape( $html ); $url = $res->{url};