bs4.Doctype.isdecimal

Doctype.isdecimal() → bool

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