I've been trying to filter the labels of a scraper that I'm doing but I've not been able to find the way in which I can filter the data that I need. The code is the following:
from bs4 import BeautifulSoup
import requests
import pandas as pd
import numpy as np
url = input("Url a scrapear: ")
pagina = requests.get(url)
elementos = BeautifulSoup(pagina.content, 'html.parser')
productos = elementos.find_all('div', class_='picture')
enlaces = pd.DataFrame(productos)
print(productos)
I need to extract the href data from all the tags that are inside the specified . Any idea how to do it? Because I've tried everything I could think of and I can't find a solution. This is the last code I've try, but it didn't work with any parameter I use to filter href data