title: google script scrape parser with 2 classes with the same name
body: <p>I am looking to build a scraper in google scripts. There are 2 classe with the same name and I can't find a way to get the second class. It only outputs the first one.</p>
  
  <p><a href="https://i.stack.imgur.com/zdnH7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zdnH7.png" alt="enter image description here"></a></p>
  
  <pre><code>function myFunction() {
      var url = "https://www.zchocolat.com/shop/fr/livraison-cadeau-chocolat/espagne";
      var fromText = '&lt;p class="article"';
      var toText = '"&gt;';
  
      var content = UrlFetchApp.fetch(url).getContentText();
      var scraped = Parser
                  .data(content)
                  .setLog()
                  .from(fromText)
                  .to(toText)
                  .build();
      Logger.log(scraped);
      return scraped;
  }
  
  function SAVE_DATA() {
     var sheet = SpreadsheetApp.openById('').getSheetByName('Feuille 1'); 
     sheet.appendRow([ new Date(), myFunction() ]);
  
  }
  </code></pre>