title: Web Scraping with PHP Goutte
body: <p>I want to get all the item name and price from this <a href="https://redmart.com" rel="nofollow noreferrer">website</a></p>
  
  <p>For example, i want to search for "apple"
  <a href="https://redmart.com/search/apple" rel="nofollow noreferrer">https://redmart.com/search/apple</a></p>
  
  <p>I use <a href="https://github.com/FriendsOfPHP/Goutte" rel="nofollow noreferrer">Goutte</a> for scraping the website. This is the code so far to get all item's name in the list:</p>
  
  <pre><code>$client = new Client();
  
  $crawler = $client-&gt;request('GET', 'https://redmart.com/search/apple');
  
  $crawler-&gt;filter('h4 &gt; a')-&gt;each(function ($node) {
      print $node-&gt;text()."\n";
  });
  </code></pre>
  
  <p>but when i run the code, it prints nothing. How to get all the item's name and price from the list?</p>