bs4.Declaration.isdigit

Declaration.isdigit() → bool

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