skip to navigation
skip to content

malaffinity 2.2.2

Calculate affinity between MyAnimeList users

Latest Version: 2.5.2

malaffinity

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
import malaffinity

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

# ...

Documentation

Documentation at https://malaffinity.readthedocs.io

Cat Gif

 
File Type Py Version Uploaded on Size
malaffinity-2.2.2-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-07-17 9KB
malaffinity-2.2.2.tar.gz (md5) Source 2017-07-17 6KB