You need to define something for the element you are looking for, and it is hard to say what exactly is in this matter.
For example, both of them print "Funstuff" in BeautifulSoup 3. One searches for the span element and gets the title, and the other looks for gaps with this class. Many other feasible ways to achieve this goal are possible.
import BeautifulSoup soup = BeautifulSoup.BeautifulSoup('<html><body><span title="Funstuff" class="thisClass">Fun Text</span></body></html>') print soup.html.body.span['title'] print soup.find('span', {"class": "thisClass"})['title']
source share