bs4.Doctype.isalnum

Doctype.isalnum() → bool

Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise.