0
Hello,
I am doing some tests with Scraping using the library "Beautifulsoup" python and I came up with a question. I was able to extract some information from a site like product title, sku, and its technical information, but I needed to add it to a dictionary and then convert these results to string.
follows the code I’m using:
titulo=soup.find(class_='fbits-produto-nome prodTitle title').get_text()
sku=soup.find(class_='fbits-sku').get_text()
descri=soup.find('div',{'class':'conteudoAbasProduto'}).children.get_text()
desc={'titulo':titulo,'sku':sku,'descri':descri}
print(desc)"
but when I print it brings me that result:
"Attributeerror: 'list_iterator' Object has no attribute 'get_text"
can help me?
if you print the variables: title, sku, describe individually they are with the data?
– Carlos H Marques
are yes, but when I print the dictionary it brings nothing
– Guilhermecor