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
You can use strict conditions like this:
soup.select("div[class='ad_item']")
That catch div with exact class. In this case with only 'ad_item' and no others joined by spaces classes.
div
'ad_item'