I want to use python beautifulsoup to extract the class property name in a piece of html content. For example, <td><div class="na"></div></td>
, "na" is the string I want to get, as sometimes the html content will switch to <td><div class="fail"></div></td>
I want to catch the property changes from "na" to "fail" or from "fail" to "na", and report it.
Any ideas?