If my class names are constantly different say for example:
listing-col-line-3-11 dpt 41 listing-col-block-1-22 dpt 41 listing-col-line-4-13 CWK 12 >
listing-col-line-3-11 dpt 41 listing-col-block-1-22 dpt 41 listing-col-line-4-13 CWK 12
Yu can try this:
regex = re.compile('.*listing-col-.*') for EachPart in soup.find_all("div", {"class" : regex}): print EachPart.get_text()