int(''.join(item for item in soup_tage_div_code if item.isnumeric())) code example
Example 1: isnumeric python
str.isnumeric()
str = u"this2009";
print str.isnumeric()
> False
str = u"23443434";
print str.isnumeric()
> True
Example 2: python sort isdigit
from natsort import natsorted
my_list = ['image101.jpg', 'image2.jpg', 'image1.jpg']
natsorted(my_list)