articles = contents.find_all('article')
for article in articles:
titles=article.find('div',{"class":"featured"})
print(titles)
This is giving the output as
<div class="featured" style="background-image: url(https://therecipecritic.com/wp-content/uploads/2018/02/Mint-Oreo-Cheesecake-1-of-1-350x500.jpg)"> <a href="https://therecipecritic.com/2018/02/mint-oreo-cheesecake/" rel="bookmark"><span class="readpost">View the Recipe</span></a></div>
Here how can I get the href of the element a