I\'m having trouble parsing HTML elements with \"class\" attribute using Beautifulsoup. The code looks like this
soup = BeautifulSoup(sdata)
mydivs = soup.fi
The following should work
soup.find('span', attrs={'class':'totalcount'})
replace 'totalcount' with your class name and 'span' with tag you are looking for. Also, if your class contains multiple names with space, just choose one and use.
P.S. This finds the first element with given criteria. If you want to find all elements then replace 'find' with 'find_all'.