I am using following code to match all div that have CSS class \"ad_item\".
soup.find_all(\'div\',class_=\"ad_item\")
problem that I have i
I have found one solution, although it have nothing to do with BS4, it is pure python code.
for item in soup.find_all('div',class_="ad_item"): if len(item["class"]) != 1: continue;
It basically skip item, if there is more than one CSS class.