title: How to use BeautifulSoup to find an href link with a class
body: <pre><code>&lt;div data-pet-card="pet-card" class="pet-card"&gt;
  
      &lt;a data-pet-card="pet-card-link" href="https://Link-I-Want.com" 
      class="pet-card__link"&gt;
  </code></pre>
  
  <p>I am used to scraping html with BS4 but I am not super familiar with html itself and haven't come across an href that also has a class and the <code>data-pet-card="pet-card-link"</code> thing. I tried:</p>
  
  <pre><code>for a in soup.find_all('a', href=True):
      print("Found the URL:", a['href'])
  </code></pre>
  
  <p>but it prints nothing, and gives no errors.</p>
  
  <p>Anything is helpful, thank you.</p>