bs4.Doctype.isspace

Doctype.isspace() → bool

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