from urllib import parse
url = r'htt'+'p://link.ru/123-456/text789/1122-hi-90.html'
print(parse.urlsplit(url).path.rsplit('/')[-1].split('-')[0])