beautifulsoup find_all() class shortcut doesn't work

thanh

New Member
I am trying to find all \[code\]p\[/code\] tags with the class \[code\]column\[/code\].\[code\]<p class="column">This is a column</p><p class="column">More columns heh</p>\[/code\]I tried doing:\[code\]soup.find_all(class_='column')\[/code\]which returned \[code\][]\[/code\]Then I tried:\[code\]soup.find_all(attrs={'class': 'column'})\[/code\]and got the right results.Shouldn't these two statements be identical? What's the difference?
 
Back
Top