malaffinity

Calculate affinity between MyAnimeList users


Keywords
myanimelist, affinity, mal, affinity-calculations, correlation, myanimelist-users
License
MIT
Install
pip install malaffinity==2.2.2

Documentation

forthebadge1 forthebadge2 forthebadge3

malaffinity

pypi travis codecov rtd

Calculate affinity between MyAnimeList users

What is this?

Calculate the affinity (Pearson's Correlation * 100) between a "base" user and another user. Refer to the docs for more info.

Install

pip install malaffinity

Dependencies

  • BeautifulSoup4
  • lxml
  • Requests

Examples

from malaffinity import MALAffinity

ma = MALAffinity("YOUR_USERNAME")

affinity, shared = ma.calculate_affinity("OTHER_USERNAME")

print(affinity)
# 79.00545465639877
print(shared)
# 82

or

import malaffinity

affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")

# ...

Documentation

Documentation at https://malaffinity.readthedocs.io

Legal Stuff

Licensed under MIT. See LICENSE for more info.

Cat Gif