html = response.read().decode('utf-8')
soup = BeautifulSoup(html, 'html.parser')
soup
cards= []
card= []
anuncio = soup.findAll('div', {'class': 'well card'})
anuncio
anuncio.find('div', {'class': 'value-card'})
out: ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-68-2c11f58bf016> in <module>
----> 1 anuncio.find('div', {'class': 'value-card'})
~\anaconda3\lib\site-packages\bs4\element.py in __getattr__(self, key)
2079 """Raise a helpful exception to explain a common code fix."""
2080 raise AttributeError(
-> 2081 "ResultSet object has no attribute '%s'. You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?" % key
2082 )
AttributeError: ResultSet object has no attribute 'find'. You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?
quando coloco o anuncio.find ele n funciona,