bs4.NavigableString.isspace

NavigableString.isspace() → bool

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