|Keywords||myanimelist affinity mal|
Calculate affinity between MyAnimeList users
Calculate the affinity (Pearson’s Correlation * 100) between a “base” user and another user. Refer to the docs for more info.
pip install malaffinity
from malaffinity import MALAffinity ma = MALAffinity("YOUR_USERNAME") affinity, shared = ma.calculate_affinity("OTHER_USERNAME") print(affinity) # 79.00545465639877 print(shared) # 82
import malaffinity affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME") # ...
Documentation at https://malaffinity.readthedocs.io
Licensed under MIT. See LICENSE for more info.