I am trying to extract href with this code
while the soup is like this
</div>
</div>
</article>
</div>
<div class="listing">
<article class="listing-item image-left" itemscope="" itemtype="https://schema.org/NewsArticle">
<div class="listing-image image-container">
<a class="image page-link" href="/mundo/venezuela/entrevista-con-el-representante-para-los-migrantes-venezolanos-eduardo-stein-425664">
<img alt="" src="/files/image_184_123/uploads/2019/10/22/5daf22f15ed09.jpeg"/>
</a>
</div>
import requests
url = "https://www.eltiempo.com/buscar?q=migrantes+venezolanos"
# Getting the webpage, creating a Response object.
response = requests.get(url)
# Extracting the source code of the page.
data = response.text
# Passing the source code to BeautifulSoup to create a BeautifulSoup object for it.
soup = BeautifulSoup(data, 'lxml')
# Extracting all the <a> tags into a list.
tags = soup.find_all('div')
# Extracting URLs from the attribute href in the <a> tags.
for tag in tags:
print(tag.get('href'))
can somebody help me? all the examples i find in internet are with hrefs that are close to an a, easier to extract
thankyou