bs4.NavigableString.isnumeric

NavigableString.isnumeric() → bool

Return True if there are only numeric characters in S, False otherwise.