K
killsto
The documentation says I can find attributes of tags by using it as a
dictionary. Ex:
product = p.findAll('dd')
print product['id']
However, when I try that python thinks I am slicing it. When I print
product, it works but is a list. I am pretty sure I have the latest
version.
Any ideas?
Reference: http://www.crummy.com/software/BeautifulSoup/documentation.html#The attributes of Tags
dictionary. Ex:
product = p.findAll('dd')
print product['id']
However, when I try that python thinks I am slicing it. When I print
product, it works but is a list. I am pretty sure I have the latest
version.
Any ideas?
Reference: http://www.crummy.com/software/BeautifulSoup/documentation.html#The attributes of Tags