Goutte find attribute code example
Example: get attribute href from crawler
$crawler->filter('body')->children('a.lorem')->attr('href'); //if you need the link
$crawler->filter('a')->attr('href');
$crawler->filter('body')->children('a.lorem')->attr('href'); //if you need the link
$crawler->filter('a')->attr('href');