Calculate affinity between MyAnimeList users
Project description
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
Legal Stuff
Licensed under MIT. See LICENSE for more info.
Cat Gif
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
malaffinity-2.5.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for malaffinity-2.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bce23b9aa6b32fb78b34dbae42d7855a3b644e992033e0caf9652a46c76a22 |
|
MD5 | 6385d6512d49607b87b212fe3a4fc3ae |
|
BLAKE2b-256 | 952a125166ece4c5c124a6b784d57a83460b25e4456d1763bee3d2d4ab76fb9e |