I am trying to extract numbers from a text using the code below:
>>> import re
>>> text="Technical Details Item Weight381 g Product Dimensions29.8 x 8.2 x 5.4 cm Best Sellers Rank 1,239,929 in Toys & Games (See top 100)"
>>> re.findall('Best Sellers Rank (.+?) in',str(text))
['1,239,929']
The output of the code is saved as a list. However, my goal is to extract the number as a numeric object (i.e. 1239929).