I want to print an attribute value based on its name, take for example
I want to do something
If tdd=' 75' In Beautifulsoup if(tdd.has_attr('class')): print(tdd.attrs['class'][0]) Result: abc