title: scrape data- attribute using goutte?
body: <p>How to scrape the <code>data-</code> attribute from a <code>&lt;a&gt;</code> link using <a href="https://github.com/FriendsOfPHP/Goutte" rel="nofollow noreferrer">goutte</a> and <a href="https://laravel.com/docs/5.4/" rel="nofollow noreferrer">laravel</a>?</p>
  
  <p>I want to scrape a tag like so:</p>
  
  <pre><code>&lt;a class="ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-nav u-textUserColor" data-nav="following" href="/rogerhamilton/following" data-original-title="987,358 Following"&gt;
  </code></pre>
  
  <p>within this <code>&lt;a&gt;</code> link I want to then scrape the <code>data-original-title</code> tag. </p>
  
  <p>My code is:</p>
  
  <pre><code>$client = new Client();
  
  //  Hackery to allow HTTPS
  $guzzleclient = new \GuzzleHttp\Client([
      'timeout' =&gt; 60,
      'verify' =&gt; false,
  ]);
  
  //  Hackery to allow HTTPS
  $client-&gt;setClient($guzzleclient);
  $crawler = $client-&gt;request('GET', 'url');
  
  
  $elements = $crawler-&gt;filter('.ProfileNav-stat.ProfileNav-stat--link')-&gt;each(function($node){
      $x = $node-&gt;filter('data-original-title');
      dd($x);
  });
  </code></pre>
  
  <p>but it doesn't return the correct data. </p>