def get_single_item_data(item_url):
    sourceCode = requests.get(item_url)
plainText = sourceCode.text
pattern = re.compile('ranking": [0-9]+')
name = pattern.search(plainText)
ranking = name.group().split()[1]
print(ranking)
item_url = 'https://www.kaggle.com/titericz'
get_single_item_data(item_url)
Python: получение текста из html с помощью Beautifulsoup