<div data-pet-card="pet-card" class="pet-card">
<a data-pet-card="pet-card-link" href="https://Link-I-Want.com"
class="pet-card__link">
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 data-pet-card="pet-card-link"
thing. I tried:
for a in soup.find_all('a', href=True):
print("Found the URL:", a['href'])
but it prints nothing, and gives no errors.
Anything is helpful, thank you.