I am trying to scrape an image from a marketplace, but I think that the strange class tags are getting in the way. This is the piece of HTML that I am trying to scrape:
When I run this snippet:
import requests
from bs4 import BeautifulSoup
url = 'https://www.americanas.com.br/produto/134231584?pfm_carac=Aspirador%20de%20P%C3%B3%20Vertical&pfm_page=category&pfm_pos=grid&pfm_type=vit_product_grid&voltagem=110V'
headers = {'User-Agent': 'whatever'}
response = requests.get(url, headers=headers)
html = response.content
bs = BeautifulSoup(html, "lxml")
bs.find('div', class_='src__Wrapper-xr9q25-1 fwzdjF')
I get this result: <div class="src__Wrapper-xr9q25-1 fwzdjF"></div>
. No more content available to scrape.
If I try to scrape the picture tag nothing happens:
>>> bs.find('picture', class_="src__Picture-xr9q25-2 gKwsnn")
Does someone have a clue on what to do here?