Closed gilad235 closed 3 years ago
I had the issue, found the solution, the issues is in get_player_suffix
function in utils.py
, in line 30:
if unicodedata.normalize('NFD', anchor.text).encode('ascii', 'ignore').decode("utf-8").lower() in name.lower():
it should be
if unicodedata.normalize('NFD', anchor.text).encode('ascii', 'ignore').decode("utf-8").lower() in normalized_name.lower():
Then it works like a charm.
amazing thanks
code works perfectly fine on Latin names, but when I try to get names with ć, the code fails I tried to get the data on "Nikola Jokic" and after that returned empty, I tried to get the data with the name saved at the same data base. than the code failed. code fails in line 29 in the file utils.py this is my code: