title: Scrapy - How can I handle a random number of elements?
body: <p>I have a Scrapy crawler that I can comfortably acquire the first desired paragraph, but sometimes there is a second or third paragraph.</p>
  
  <p><code>response.xpath(f"string(//h2[contains(text(), '{card}')]/following-sibling::p)").get()</code>
   is the xpath code I am using to acquire said paragraph. </p>
  
  <p><code>response.xpath(f"string(//h2[contains(text(), '{card}')]/following-sibling::p[1])").get()</code> acquires the same paragraph, but sometimes, I need <code>response.xpath(f"string(//h2[contains(text(), '{card}')]/following-sibling::p[2])").get()</code>.</p>
  
  <p>How might I go about taking this varying number of paragraphs into account when scraping?</p>